RE: [Alug]Equivalent of DOS 'dir /s /b'?
Keith Watson wrote:
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 [...]
How about: find /Test1 JD _____________________________________________________________________ This message has been checked for all known viruses by the MessageLabs Virus Scanning Service
From: Jonathan Dye Keith Watson wrote:
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 [...]
How about:
find /Test1
That's it!! Brilliant! Great! Trouble with Unix is that sometimes the answers are so simple you can't see them for looking. I'd tried just about every combination of 'ls' and its operands I could think of but hadn't considered 'find'. (Mind you I now know a lot more about 'ls' than I really want to know :o) ) Regards, Keith ____________ Each of us must journey through the dots, beyond the dots, and to the truth, alone. Russell Hoban
participants (2)
-
Jonathan Dye -
Keith Watson