Monthly Archives: June 2014

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