How to list files filtered out by date and delete them (ls, awk, rm) 20/04/2016Alex Leave a comment ls -al | awk ' $7 >= 3 && $7 <= 27 && $8==2015 {print $9}' | xargs rm -f