Feed the list of all those empty files to the rm command one at a time, and you're done:
$ ls -tr |xargs -t -I{} rm -f {}
==============================
ls /var/log/*.[0-9]* | xargs gzip --best
Saturday, January 24, 2009
Piping commands to xargs
Labels:
Tips n Tricks,
UNIX
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment