Monthly Archives: May 2016

Convert space to underscore in filenames

rename “s/ /_/g” *

Posted in Uncategorized | Leave a comment

reorder files by renaming

To rename files the way this can list them: ls -lv This is needed when for example you need to handle bunch of images named like: 1 front.jpg -> 0001.jpg 02.jpg-> 0002.jpg 3.jpg-> 0003.jpg 10.jpg-> 0004.jpg Found somewhere in the net, … Continue reading

Posted in Uncategorized | Leave a comment

Linux rename files to lower case *.JPG *.jpg

rename ‘s/\.JPG$/.jpg/’ *.JPG

Posted in Uncategorized | Leave a comment