From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,740ba1e74978216e X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2000-08-17 17:48:40 PST Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!nntp.cs.ubc.ca!newsfeed.stanford.edu!news.ems.psu.edu!news.cis.ohio-state.edu!news.maxwell.syr.edu!howland.erols.net!ix.netcom.com!news.mindspring.net!firehose.mindspring.com!news.mindspring.com!alderson From: alderson@netcom2.netcom.com (Richard M. Alderson III) Newsgroups: comp.unix.tru64 Subject: Re: Deleting many files with rm Date: 18 Aug 2000 00:45:34 GMT Organization: NETCOM On-line services Message-ID: References: <8mbaa1$b09$1@nnrp1.deja.com> Reply-To: alderson@netcom.com NNTP-Posting-Host: c7.b7.09.66 X-Server-Date: 18 Aug 2000 00:45:34 GMT In-reply-to: "Josef Faulkner"'s message of Thu, 17 Aug 2000 00:33:38 -0400 Xref: supernews.google.com comp.unix.tru64:116 In article "Josef Faulkner" writes: > ls -1 | awk '{ print "rm "$0 }' | sh This runs into the same objection as the _find_ solution, to wit, a separate invocation of _rm_ for each file. _xargs_ is the correct solution. Rich Alderson Last LOTS Tops-20 Systems Programmer, 1984-1991 Current maintainer, MIT TECO EMACS (v. 170) last name @ XKL dot COM Chief systems administrator, XKL LLC, 1998-now