Month: May 2016

Traverse and Rename files in folder

I recently encountered a problem wherein I had to traverse through all the files in a folder and rename each file. The original files is as shown below having a set of characters and number separated by an “-” (hyphen) with jpg extension. d6445cef9361a2bf-1.jpg d6445cef9361a2bf-2.jpg d6445cef9361a2bf-3.jpg and so on. Here, the requirement was to remove […]