Move files in directory based on year

for i in `ls -lrt | grep “2015”| awk ‘{print $9}’ `; do mv -f $i* /new/Archives.2015/; done


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *