Path: 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 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 ! ---------------------------