Using "find" in a script..

WipeOut wipe_out at users.sourceforge.net
Tue Apr 20 15:56:45 UTC 2004


Alexander Dalloz wrote:

>Others already gave the answer (escaping the ;).
>
>Besides that you better avoid other circumstances (failures like "too
>much arguments") by using xargs instead of -exec. So the line from above
>would look like
>
>find /backups/fcws/ -mtime +15 -maxdepth 1 \
>-type d -print0 | xargs -0 rm -rf
>
>Alexander
>
>
>  
>
Thanks to everyone for your thoughts..

Escaping the ; didn't solve the problem but the above command line is 
working fine..

Later..





More information about the fedora-list mailing list