A fancy little trick with the find command, you can do -name or declarations with the find command!

find . ( -name ".sh" -o -name ".pl" -o -name "*.php" ) -mtime +20

^that command will find (recursively) any php, pl, and sh files older than 20 days in the current directory.

Thanks, unixtips.

Blog Logo

Mario Loria


Published

Image

./scriptthe.net

Because 127.0.0.1 gets old after a while.

Back to Overview