In DOS the command 'dir /s /b' gives a useful listing of just filenames prefixed with directory paths.
Can anyone think of a way to get the same listing within a bash shell?
Keith
Keith Watson kpwatson@ukfsn.org wrote:
In DOS the command 'dir /s /b' gives a useful listing of just filenames prefixed with directory paths.
Can you give an example? I only remember using /p and /w to dir.
From: MJ Ray Keith Watson kpwatson@ukfsn.org wrote:
In DOS the command 'dir /s /b' gives a useful listing of just filenames prefixed with directory paths.
Can you give an example? I only remember using /p and /w to dir.
No problem;
D:>dir /b /s \Test1
D:\Test1\Cat D:\Test1\Cow D:\Test1\Dog D:\Test1\Pig D:\Test1\foo.bar D:\Test1\foo1.bar D:\Test1\foo2.bar D:\Test1\foo3.bar D:\Test1\foo4.bar D:\Test1\foo5.bar D:\Test1\Cat\Diamond D:\Test1\Cat\Emerald D:\Test1\Cat\Pearl D:\Test1\Cat\Ruby D:\Test1\Cat\Diamond\foo.bar D:\Test1\Cat\Emerald\foo1.bar D:\Test1\Cat\Emerald\foo2.bar D:\Test1\Cat\Emerald\foo3.bar D:\Test1\Cat\Emerald\foo4.bar D:\Test1\Cat\Emerald\foo5.bar D:\Test1\Cat\Emerald\foo6.bar D:\Test1\Cat\Pearl\foo.bar D:\Test1\Cat\Pearl\foo1.bar D:\Test1\Cat\Pearl\foo2.bar D:\Test1\Cat\Pearl\foo3.bar D:\Test1\Cat\Pearl\foo4.bar D:\Test1\Cat\Ruby\foo.bar D:\Test1\Cat\Ruby\foo1.bar D:\Test1\Cat\Ruby\foo10.bar D:\Test1\Cat\Ruby\foo2.bar D:\Test1\Cat\Ruby\foo3.bar D:\Test1\Cat\Ruby\foo4.bar D:\Test1\Cat\Ruby\foo5.bar D:\Test1\Cat\Ruby\foo6.bar D:\Test1\Cat\Ruby\foo7.bar D:\Test1\Cat\Ruby\foo8.bar D:\Test1\Cat\Ruby\foo9.bar D:\Test1\Cow\foo.bar D:\Test1\Cow\foo1.bar D:\Test1\Cow\foo10.bar D:\Test1\Cow\foo2.bar D:\Test1\Cow\foo3.bar D:\Test1\Dog\Apple D:\Test1\Dog\Bannana D:\Test1\Dog\foo.bar D:\Test1\Dog\Orange D:\Test1\Dog\Pear D:\Test1\Dog\Plum D:\Test1\Dog\Apple\foo.bar D:\Test1\Dog\Apple\foo1.bar D:\Test1\Dog\Apple\foo7.bar D:\Test1\Dog\Apple\foo8.bar D:\Test1\Dog\Apple\foo9.bar D:\Test1\Dog\Bannana\Curry D:\Test1\Dog\Bannana\foo10.bar D:\Test1\Dog\Bannana\Stew D:\Test1\Dog\Bannana\Curry\foo2.bar D:\Test1\Dog\Bannana\Stew\foo.bar D:\Test1\Dog\Bannana\Stew\foo10.bar D:\Test1\Dog\Bannana\Stew\foo2.bar D:\Test1\Dog\Bannana\Stew\foo3.bar D:\Test1\Dog\Bannana\Stew\foo5.bar D:\Test1\Dog\Bannana\Stew\foo6.bar D:\Test1\Dog\Orange\foo.bar D:\Test1\Dog\Orange\foo10.bar D:\Test1\Dog\Orange\foo3.bar D:\Test1\Dog\Orange\foo5.bar D:\Test1\Dog\Orange\foo7.bar D:\Test1\Dog\Orange\foo9.bar D:\Test1\Dog\Pear\foo.bar D:\Test1\Dog\Pear\foo1.bar D:\Test1\Dog\Pear\foo10.bar D:\Test1\Dog\Pear\foo2.bar D:\Test1\Dog\Plum\foo3.bar D:\Test1\Dog\Plum\foo4.bar D:\Test1\Dog\Plum\foo5.bar D:\Test1\Dog\Plum\foo6.bar D:\Test1\Dog\Plum\foo7.bar D:\Test1\Dog\Plum\foo8.bar D:\Test1\Dog\Plum\foo9.bar D:\Test1\Pig\foo.bar D:\Test1\Pig\foo3.bar D:\Test1\Pig\foo4.bar D:\Test1\Pig\foo5.bar D:\Test1\Pig\foo6.bar D:\Test1\Pig\foo8.bar D:\Test1\Pig\foo9.bar
Keith ____________ Even before I can say it, it is no more. Sengai
On Wed, 16 Apr 2003 22:29:33 +0100 Keith Watson kpwatson@ukfsn.org wrote:
In DOS the command 'dir /s /b' gives a useful listing of just filenames prefixed with directory paths.
I can't remember what the output of 'dir /s /b' looks like but possible thinsg to try are:
ls -R ls -lR
find . -type f find . -type f | xargs ls -l
Steve.