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

Re: ls | grep



On Sat, Jan 07, 2006 at 07:04:14PM +0100, Al Bogner wrote:
> Kaum zu glauben, was da alles zu berücksichtigen ist. Danke, klappt. Da liest 
> sich für mich die ls|grep-Variante doch schneller, auch wenn es 2 grep sind.

Man kann sich '-follow' auch sparen, wenn man '-xtype' statt '-type'
nimmt:

find -maxdepth 1 -xtype d ! -regex ".*_\(cd\|ef\)$" ! -name "." -printf "%f\n"

Und schon ist es wieder lesbar ;-)

> Al

Gruß,

f
-- 
Gravity is a myth, the Earth sucks.



Reply to: