[prev in list] [next in list] [prev in thread] [next in thread] 

List:       procmail
Subject:    Re: ls Error
From:       Sebastian Helms <sebastian () helms ! sh>
Date:       2000-05-17 7:55:46
[Download RAW message or body]

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@helms.sh (PGP available)

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic