Sie sind auf Seite 1von 1

Remove all but 5 (or whatever number) of the most recent files in a directory.

rm `ls -t | awk 'NR>5'`

Das könnte Ihnen auch gefallen