Finding files by date using the GNU Find Command

So I have now acquired so many photographs (~20k) that Shotwell chokes a bit when I try to import more.  This is partly as I tend to let my memory cards fill up so it has to compare 2,000 photographs with the database of 20,000 to see if it already has any of them.  Still with my reluctance to delete anything means I need some GNU magic. 

find -mtime -7 -exec cp {} ~/Desktop/photoimport/ \;

Will find files in the current directory modified in the last seven days and copy them to the Desktop.  You can then copy them into the Shotwell directory and it is much quicker. 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s