On Tue, 2008-12-02 at 04:42 +0800, adrian kok wrote:
Hi
I have script to remove files but it can't work in
directory
ls *log | sort -r | sed -e 1,1d | xargs rm -f
those folders are:
Nov28-log
Nov29-log
Nov30-log
You need to explain what you're trying to do exactly.
Also, what's the "1,1d" for in the sed command? Don't you mean
"1d"?
poc