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

Re: ls | grep



Hallo Al,

On Sat, Jan 07, 2006 at 02:50:09PM +0100, Al Bogner wrote:
> find -maxdepth 1 -type d ! -regex ".*[_cd|_ef]$" -printf "%f\n"
> .
> a_1
> a_2
> a
> a_kb
> 
> 
> Es bleibt also der Punkt. Kann man den ohne weitere Pipe entfernen?

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

> Al

Gruß,

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



Reply to: