procmail
[Top] [All Lists]

Re: ls Error

2000-05-16 21:54:13

Recently I executed the following command:

    rm -f dummy "ls -t msg.* | sed -e 1,900d"

As a result, I received the following error:

    bash: /bin/ls: Argument list too long

I know why (14,522 msg.* files exist in the directory), but I need a
solution.

Try:

rm -f dummy
ls -t msg.* | sed -e 1,900d | xargs -n 100 rm -f


*********************************************************************
Signed,
SoloCDM



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