Bash globbing files only?

Evan Klitzke eklitzke.lists at gmail.com
Mon Jan 29 22:59:56 UTC 2007


On Mon, 2007-01-29 at 14:38 -0800, Rick Stevens wrote:

> Uh, how about "find . -maxdepth 1 -type f -print" to list the files and
> "find . -maxdepth 1 -type d -print" for directories?  Take out the
> "-maxdepth 1" and it'll walk the directory tree.
> 
> Nah, too prosaic!

Next you'll be telling me that "cat foo | grep bar" is redundant!

-- Evan Klitzke




More information about the fedora-list mailing list