🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1381

Re: Can U pipe filenames to rm???

#1381
From: George Turczynski
Date: Wed, 03 Oct 1990 22:33
22 lines
1237 bytes
From previous postings-

> >Example:
> >  find {{stuff here}} -print | xargs rm -f
  
> Locally, we've hacked our "find" to handle:
> 	$ find . -name \*.old -rm

Our `find' (SunOS) supports the `-exec' option, and I assume this would be
fairly common.  So, those of you without xargs, and who | a. can't,  b. don't
want to | hack `find' use it like this:

	find {{stuff here}} -exec rm -f {} \;

Why use `xargs' when you don't need to ?

-- 
George P. J. Turczynski,   Computer Systems Engineer. Highland Logic Pty Ltd.
ACSnet: george@highland.oz |^^^^^^^^^^^^^^^^^^^^^^^^| Suite 1, 348-354 Argyle St
Phone:  +61 48 683490      |  Witty remarks are as  | Moss Vale, NSW. 2577
Fax:    +61 48 683474      |  hard to come by as is | Australia.
---------------------------   space to put them !    ---------------------------
Technical Details
Message-ID: <941@hls0.hls.oz>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!munnari.oz.au!metro!wolfen!hls0!george
References: <28790001@col.hp.com> <1977@sixhub.UUCP> <1990Sep30.182331.14363@iconsys.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!munnari.oz.au!metro!wolfen!hls0!george
From: george@hls0.hls.oz (George Turczynski)
Newsgroups: comp.unix.shell
Subject: Re: Can U pipe filenames to rm???
Message-ID: <941@hls0.hls.oz>
Date: 3 Oct 90 22:33:07 GMT
References: <28790001@col.hp.com> <1977@sixhub.UUCP> <1990Sep30.182331.14363@iconsys.uucp>
Lines: 22