This assumes there are no filenames with newlines in them.find . -type f | perl -nle 'print -M, "\t$_"' | sort -n | \ + tail +10 | cut -f 2 | xargs rm
-- Abigail
In reply to Re: find "x" quantity newest files in a dir
by Abigail
in thread find "x" quantity newest files in a dir
by braintoast
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |