Thursday, April 2, 2009

moving old directories out of the way

This oneliner moves all non-2009 directories into a subdirectory:

mkdir OLD
echo mv `ls -1tl | awk '!/2009-/ {print $NF}'` OLD/

No comments:

Post a Comment