Delete files based on date


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. ls -lh | awk '{print $6 " " $9}' | sed -n '/May/p' | awk '{print $2}' >> file_list
  2. rm `cat file_list`

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.