Article View: comp.unix.shell
Article #1636a compromise safe way to use find and xargs rm together
From: David J. MacKenzie
Date: Sat, 27 Oct 1990 14:58
Date: Sat, 27 Oct 1990 14:58
8 lines
641 bytes
641 bytes
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@eng.umd.edu> <djm@ai.mit.edu>
Technical Details
Message-ID:
<DJM.90Oct27105828@egypt.eng.umd.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!nih-csl!lhc!mimsy!mojo!mojo!djmShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!nih-csl!lhc!mimsy!mojo!mojo!djm From: djm@eng.umd.edu (David J. MacKenzie) Newsgroups: comp.unix.shell Subject: a compromise safe way to use find and xargs rm together Message-ID: <DJM.90Oct27105828@egypt.eng.umd.edu> Date: 27 Oct 90 14:58:28 GMT Sender: news@eng.umd.edu (The News System) Organization: Free Software Foundation Lines: 8