[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Bash globbing files only?



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]