sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #53535
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