Thursday, August 8, 2013

mv numerous files at once



Or...

   for file in * ; do mv $file `echo $file | sed -e 's/AAA-\(.*\)_\(.*\).txt/AAA-\2-\1.txt/'`; done 

(for help understanding... http://www.daemonforums.org/showthread.php?t=2565)

No comments:

Post a Comment