Can U pipe filenames to rm???

Mike Greiner greiner at col.hp.com
Sat Sep 29 09:07:43 AEST 1990


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 at col.hp.com        #
#############################



More information about the Comp.unix.shell mailing list