find file via modified time, by year

by JIMz

1 min read

files modified in 2011, list them

find . -maxdepth 1 -newermt 20110101 -not -newermt 20120101 -type f -exec ls -lt "{}" ;

files modified in 2011, move them

find . -maxdepth 1 -newermt 20110101 -not -newermt 20120101 -type f -exec mv "{}" move-to-folder/ ;