How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

September 25, 2015

Remove all files created before a certain date

Filed under: Linux — Tags: , , , , — admin @ 12:45 pm

What I want is to delete manually all e-mail that are before 01/01/2015

The command is
find /directory/path -type f ! -newermt 2015-01-01 -ls -exec rm -f {} \;

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress