← Back to team overview

sslug-teknik team mailing list archive

Re: Boolean svar med find

 

Rasmus Toft Lauridsen <linux@xxxxxxxx> writes:

> if [ `find /et/eller/andet/dir/ -type d -ctime +3 ??` ]
>     Kør kode
> fi

if [ ! -z `find ... -print0` ] then
  # Fandt noget
fi

Ser ud til at virke hos mig både i bash og ash. 

-- 
 Peter Makholm     |       I have something to say: It's better to burn in
 peter@xxxxxxxxxxx |                              hell, than to fade away!
 http://hacking.dk |                                             -- Kurgan


Follow ups

References