rm argument list too long find and xargs
teddymills
teddy-5sHjOODPK7E at public.gmane.org
Mon Apr 12 16:29:08 UTC 2010
I was trying to rm more than 1024 files at one time (old logs)
and rm returned a strange error. "Argument list too long"
so find and xargs to the rescue..
find . -name 'myDEBUG*.log' | xargs rm
http://en.wikipedia.org/wiki/Xargs
uname -a shows a kernel less than 2.6.23
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list