Command line file organization on OSX and Linux

Friday, May 7th, 2010

Some quick CLI commands I use all the time but forget the exact syntax for.

Find all files that have been modified in the past 7 days

 

Find all JPEGs that have been modified more than 30 days ago

 

Move all JPEGs from the current folder (recursively) that are greater than 40k into the folder /tmp/2

 

Tell me info about files in the current folder

 

Tell me info about all of the mp3 files in this folder

span style="color: #ff0000;">'{}' \;

Clean subversion metadata out of a directory

span style="color: #ff0000;">'{}' \;

Use the above to make an export of a working copy by doing:

span style="color: #ff0000;">'{}' \;

Any command that is deleting files will prompt you for each file. to go through them all without prompts, just run the command as root

span style="color: #ff0000;">'{}' \;