Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.shell Subject: Re: Can U pipe filenames to rm??? Message-ID: <1990Sep29.120612.27298@virtech.uucp> Date: 29 Sep 90 12:06:12 GMT References: <28790001@col.hp.com> <1990Sep28.211655.4903@mp.cs.niu.edu> Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill) Organization: Virtual Technologies Inc., Sterling VA Lines: 19 In article <1990Sep28.211655.4903@mp.cs.niu.edu> rickert@mp.cs.niu.edu (Neil Rickert) writes: >In article <28790001@col.hp.com> greiner@col.hp.com (Mike Greiner) writes: >> >> 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` The fact that you are limited in the number of files and cumulative length of the names of the files. If you come up with one extra name, or one too many characters in the names, the shell will refuse to exec it, saying something about "arg list too long". -- Conor P. Cahill (703)430-9247 Virtual Technologies, Inc., uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160 Sterling, VA 22170