Re: rm - Arguments too long
davehinz_at_spamcop.net
Date: 04/26/03
- Previous message: Rich Teer: "Re: rm - Arguments too long"
- In reply to: K Stahl: "Re: rm - Arguments too long"
- Next in thread: Jan Reilink: "Re: rm - Arguments too long"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 26 Apr 2003 05:24:42 GMT
In comp.unix.admin K Stahl <ktsahl@yahoo.com> wrote:
> Jan Reilink wrote:
>> I haven't seen this answer (yet), it might take a while though:
>> $ cd <directory>
>> $ ls -1 | while read line; do (/bin/rm $line); done
> What happens if there is an embedded space in a file name?
Short answer: It doesn't work right for those files.
Real answer: smack whoever did that.
> Why not just:
> while read Buff;do /bin/rm "$Buff";done<$(ls -1);
Maybe I'm missing why rm -rf dirname won't work here?
Dave Hinz
- Previous message: Rich Teer: "Re: rm - Arguments too long"
- In reply to: K Stahl: "Re: rm - Arguments too long"
- Next in thread: Jan Reilink: "Re: rm - Arguments too long"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|