Re: Using "find" in a script..

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

 



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..



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux