[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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