Can U pipe filenames to rm???

Conor P. Cahill cpcahil at virtech.uucp
Sat Sep 29 22:06:12 AEST 1990


In article <1990Sep28.211655.4903 at mp.cs.niu.edu> rickert at mp.cs.niu.edu (Neil Rickert) writes:
>In article <28790001 at col.hp.com> greiner at 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 



More information about the Comp.unix.shell mailing list