Xref: utzoo comp.unix.internals:2449 comp.lang.perl:4711 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!jik From: jik@athena.mit.edu (Jonathan I. Kamens) Newsgroups: comp.unix.internals,comp.lang.perl Subject: Re: Crafty automatic file deletion? Message-ID: Date: 28 Mar 91 05:15:36 GMT Article-I.D.: pit-mana.JIK.91Mar28001532 References: <126507@uunet.UU.NET> Sender: news@athena.mit.edu (News system) Followup-To: comp.lang.perl Organization: Massachusetts Institute of Technology Lines: 19 In-Reply-To: rbj@uunet.UU.NET's message of 26 Mar 91 06:30:30 GMT In article <126507@uunet.UU.NET> rbj@uunet.UU.NET (Root Boy Jim) writes: Otherwise, First pick all the files matching this pattern, then process them. find ~ -name "*.rm.*.*" -print | maybe-remove Of course now you have to write the latter program. A good language to write it in would be perl. If maybe-remove is written in perl, then it is ridiculous to do the find in a separate process, since the perl can do it in the same process as the maybe-remove stuff. Doesn't the perl distribution come with "find2perl" or something like that? Jonathan Kamens USnail: MIT Project Athena 11 Ashford Terrace jik@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-8085 Home: 617-782-0710