[ale] When a script is necessary, and when a piped command is sufficient ?

Geoffrey esoteric at 3times25.net
Wed Mar 15 09:57:27 EST 2006


Paul Cartwright wrote:

> but I'm sure Geoffrey will have a more elegant method:)

Hopefully one that will really work!

Oops, forgot to parse out the file name.  Since the filename will be 
last in the ls output, you can do the following:

ls -l |sort +5 |awk '{print $NF}'|xargs rm -i

-- 
Until later, Geoffrey



More information about the Ale mailing list