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

Re: ls | grep



On Sat, Jan 07, 2006 at 05:57:49PM +0100, Al Bogner wrote:
> Ein Problem habe ich noch mit dieser Syntax. Es sollen (zusätzlich) auch 
> Verzeichnisse inkludiert werden, wenn es sich um einen symbolischen Link 
> handelt, wenn eine Datei ein symbolischer Link ist, dann soll die Datei nicht 
> gelistet werden.
> 
> Ist das mit  -type l überhaupt machbar und wenn ja wie?

Gib find noch die Option -follow mit:

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

> Al

Gruß,

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



Reply to: