tburkhol, 8 months ago Others have explained the line. Worth noting that not all implementations of head accept negative line counts (i.e. last n lines), and you might substitute tail. i.e.: ls -1 /backup/*.dump | tail -2 | xargs rm -f
Others have explained the line.
Worth noting that not all implementations of head accept negative line counts (i.e. last n lines), and you might substitute tail.
i.e.: ls -1 /backup/*.dump | tail -2 | xargs rm -f