🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1295

Re: Can U pipe filenames to rm???

#1295
From: Stefan Zimmermann
Date: Mon, 01 Oct 1990 11:02
29 lines
1311 bytes
cpcahil@virtech.uucp (Conor P. Cahill) writes:

>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".

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
Technical Details
Message-ID: <1004@materna.uucp>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!unido!materna!sz
References: <28790001@col.hp.com> <1990Sep28.211655.4903@mp.cs.niu.edu> <1990Sep29.120612.27298@virtech.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!unido!materna!sz
From: sz@materna.uucp (Stefan Zimmermann)
Newsgroups: comp.unix.shell
Subject: Re: Can U pipe filenames to rm???
Message-ID: <1004@materna.uucp>
Date: 1 Oct 90 11:02:09 GMT
References: <28790001@col.hp.com> <1990Sep28.211655.4903@mp.cs.niu.edu> <1990Sep29.120612.27298@virtech.uucp>
Organization: Dr. Materna GmbH, Dortmund (FRG)
Lines: 29