Re: dir /s *.* equivalent for unix.
> I just keeping getting all these lovely questions for you. At a console,
> if I want to search for a file or any files with a certain extension in
> the current directory and all sub directories and list them, what's the
> best way to do this? The equivalent in DOS would be "dir /s *.whatever"
> but this doesn't work with ls like "ls -R *.deb", for instance. I can do
> "ls -R | more" and then use more's search ability but this is getting
> tiring. Man page isn't too helpful either.
1) ls -R | grep '.whatever$'
2) find . -name \*.whatever -print
Alex Y.
--
_
_( )_
( (o___ +-------------------------------------------+
| _ 7 | Alexander Yukhimets |
\ (") | http://pages.nyu.edu/~aqy6633/ |
/ \ \ +-------------------------------------------+
--
Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
Reply to: