Re: rm - Arguments too long
From: K Stahl (ktsahl_at_yahoo.com)
Date: 04/25/03
- Previous message: K Stahl: "Re: rm - Arguments too long"
- In reply to: Jan Reilink: "Re: rm - Arguments too long"
- Next in thread: davehinz_at_spamcop.net: "Re: rm - Arguments too long"
- Reply: davehinz_at_spamcop.net: "Re: rm - Arguments too long"
- Reply: Jan Reilink: "Re: rm - Arguments too long"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 25 Apr 2003 21:47:12 GMT
Jan Reilink wrote:
>
> cljlk wrote:
> > I use rm -r directory, it hang for 3 days, it still could not
> > delete the directory. Thus I cd directory and rm *, I got
> > "Arguments too long". How do I delete files? A
> > can I have other alternation option to remove the directory?
> > Thanks
> >
>
> 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?
Why not just:
while read Buff;do /bin/rm "$Buff";done<$(ls -1);
- Previous message: K Stahl: "Re: rm - Arguments too long"
- In reply to: Jan Reilink: "Re: rm - Arguments too long"
- Next in thread: davehinz_at_spamcop.net: "Re: rm - Arguments too long"
- Reply: davehinz_at_spamcop.net: "Re: rm - Arguments too long"
- Reply: Jan Reilink: "Re: rm - Arguments too long"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|