Article View: comp.unix.shell
Article #1272Re: Can U pipe filenames to rm???
From: Neil Rickert
Date: Fri, 28 Sep 1990 21:16
Date: Fri, 28 Sep 1990 21:16
20 lines
1269 bytes
1269 bytes
In article <28790001@col.hp.com> greiner@col.hp.com (Mike Greiner) writes:
>
> Piping filenames to the rm command???
>
>I am trying to write a script to uninstall files installed via an
>ninstall package. I can generate a list of filenames to delete, but
>I haven't figured out how to pipe this list of names to rm. Here's
>the heart of my script so far, followed by its output:
>
> ninstall -h $1 -vvvvv -p $2 | grep path | cut -d " " -f4
What is wrong with:
rm `ninstall -h $1 -vvvvv -p $2 | grep path | cut -d " " -f4`
--
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
Neil W. Rickert, Computer Science <rickert@cs.niu.edu>
Northern Illinois Univ.
DeKalb, IL 60115. +1-815-753-6940
Technical Details
Message-ID:
<1990Sep28.211655.4903@mp.cs.niu.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!mp.cs.niu.edu!rickertReferences:
<28790001@col.hp.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!mp.cs.niu.edu!rickert From: rickert@mp.cs.niu.edu (Neil Rickert) Newsgroups: comp.unix.shell Subject: Re: Can U pipe filenames to rm??? Message-ID: <1990Sep28.211655.4903@mp.cs.niu.edu> Date: 28 Sep 90 21:16:55 GMT References: <28790001@col.hp.com> Organization: Northern Illinois University Lines: 20