Posted By

danshields on 07/01/11


Tagged

commandline linux


Versions (?)

Delete files based on date


 / Published in: Bash
 

  1. ls -lh | awk '{print $6 " " $9}' | sed -n '/May/p' | awk '{print $2}' >> file_list
  2. rm `cat file_list`

Report this snippet  

You need to login to post a comment.