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 {} \;

January 26, 2012

search files with multiple patterns in linux

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

Well today I have to search files with *.php and with *.html .

How to do that ?

Solution is :

find ./  \( -name "*.php" -o -name "*.html"   \)

 

Powered by WordPress