🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1636

a compromise safe way to use find and xargs rm together

#1636
From: David J. MacKenzie
Date: Sat, 27 Oct 1990 14:58
8 lines
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!djm

Show 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