🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1282

Re: Can U pipe filenames to rm???

#1282
From: Mike Greiner
Date: Fri, 28 Sep 1990 23:07
17 lines
990 bytes
Thanks to all who emailed me the solution to this problem!  For the 
benefit of anyone who might be curious, here's one answer:

ninstall -h $1 -vvvvv -p $2 | grep path | cut -d " " -f4 | xargs rm
                                                         ^^^^^^^^^^
The xargs utility passes the input lines to the rm command as
parameters--just what I was after.  Thanks again!

--Mike

#############################
# Mike Greiner              #
# Information Technology    #
# Hewlett-Packard           #
# Colorado Springs Division #
# greiner@col.hp.com        #
#############################
Technical Details
Message-ID: <28790002@col.hp.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!hplabs!hpcc05!col!greiner
References: <28790001@col.hp.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!hplabs!hpcc05!col!greiner
From: greiner@col.hp.com (Mike Greiner)
Newsgroups: comp.unix.shell
Subject: Re: Can U pipe filenames to rm???
Message-ID: <28790002@col.hp.com>
Date: 28 Sep 90 23:07:43 GMT
References: <28790001@col.hp.com>
Organization: HP Colorado Springs Division
Lines: 17