1

Bash for batch renaming

view story
linux-howto

http://forums.fedoraforum.org – It risk to do a duplicate but i didn't find a solution yet. I have a bunch of files img001 img002 img003 etc ... i need a batch rename it to only even or odd. Such way the 3+ files mentioned before become img001 img003 img005. I think it related to bash scripting something like for f in * do i++; newname="img"+"00"+(i+(i+1) mv oldname newname. Gusti sono gusti (HowTos)