Can U pipe filenames to rm???
Stefan Zimmermann
sz at materna.uucp
Mon Oct 1 21:02:09 AEST 1990
cpcahil at virtech.uucp (Conor P. Cahill) writes:
>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".
Perhaps this:
ninstall -h $1 -vvvvv -p $2 | grep path | cut -d " " -f4 > tmpfile
split -50 tmpsplit tmpfile
for i in tmpsplit??
do
rm `cat $i`
done
OK, it's not a solution for very very very long argument lists !!
Stefan
More information about the Comp.unix.shell
mailing list