procmail
[Top] [All Lists]

Re: ls Error

2000-05-18 07:31:52
Hi,

* Emil Isberg wrote on 16 May 2000:

Ouch. That's alot of files...
What about the following:
 rm -f dummy `ls -t .| grep '^msg\.' | sed -e '1,900d'`

If this doesn't work (can't test, don't have enough files.. ;-)
maybe he has to use find with some syntax I still haven't
understood...

find shouldn't generate long argument lists but process each
file separately. Then again, he would have to find a way to exclude
the first 900 files...

Sebastian
 
-- 
Ash nazg durbatulûg, ash nazg gimbatul,
Ash nazg thrakatulûk agh burzum-ishi krimpatul.

Sebastian Helms   -  mailto:sebastian(_at_)helms(_dot_)sh (PGP available)

<Prev in Thread] Current Thread [Next in Thread>