Tuesday, September 4, 2007

Batch rename files

Windows :
There are a lot of utilities out there But the best is ExplorerXP which has an elaborate renaming scheme allowing to
a) TRIM the filenames from front or end
b) find and replace text patterns
c) Number the files -> this is extremely useful if you downloaded a lot of wallpapers with a jungle of messy names. Just select them and rename as nature01.jpg , nature02.jpg .... auto numbering.

Linux:
Use rename command
http://linux.die.net/man/1/rename
http://tips.webdesign10.com/how-to-bulk-rename-files-in-linux-in-the-terminal

rename day0 beach day*.avi

Output :
day01.avi renamed as beach1.avi
day02.avi renamed as beach2.avi
day03.avi renamed as beach3.avi

In Ubuntu the syntax in different. It uses the syntax of sed

rename -v 's/day0/beach/' day*.avi

-v verbose
-n dry run. Doesn't change filename just shows how the change would look.

No comments:

OK GOOGLE on Samsung Galaxy S7 doesn’t work

To make Ok Google detection work on Galaxy S7 (Galaxy series phones) we need to perform a couple of steps. 1. As long as Samsung S vo...