a compromise safe way to use find and xargs rm together

David J. MacKenzie djm at eng.umd.edu
Sun Oct 28 00:58:28 AEST 1990


Here is another safe way to use find and xargs together, if you don't
mind making files with newlines in the name immune to removal.

find / ! -name '*
*' ! -name '.*
*' -atime -10 -print | xargs rm -f
--
David J. MacKenzie <djm at eng.umd.edu> <djm at ai.mit.edu>



More information about the Comp.unix.shell mailing list