Can U pipe filenames to rm???

Neil Rickert rickert at mp.cs.niu.edu
Sat Sep 29 07:16:55 AEST 1990


In article <28790001 at col.hp.com> greiner at 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 at cs.niu.edu>
  Northern Illinois Univ.
  DeKalb, IL 60115.                                  +1-815-753-6940



More information about the Comp.unix.shell mailing list