Path: 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 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 Northern Illinois Univ. DeKalb, IL 60115. +1-815-753-6940