Christopher Barry <[EMAIL PROTECTED]> writes: | 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.
If you mean ls man page, then you are correct and there's even a good explanation. This is because in Unix wildcard expansion is usually shell's job (unlike in DOS or Win32). The others already gave you pretty shell-neutral solutions, but here's how the wanted result can be achieved if you are using zsh (recommended!): ls **/*.deb Just in case there could be directories ending with ".deb", then you could be more precise: ls **/*.deb(.) or if you want exactly those directories: ls **/*.deb(/) zsh manual pages or the texinfo version tells you all this and much more. //Hannu -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null