I’m a twentysomething coder living la vida loca on the southern coast of Spain. I work primarily with Ruby on Rails and Drupal, and dabble in the dark art of Lisp programming for my own amusement.
Some men look at things the way they are and ask why? I dream of things that are not and ask why not?
— Robert Kennedy
Hey Arto & everyone using this script:
Be careful when trying to run this on Red Hat Enterprise Linux or CentOS 4 systems. These operating systems ship with a different rename command than the debian systems. You can also tell them apart based on the output when running ‘rename’ with no arguments.
This is the perl version which works:
Usage: rename [-v] [-n] [-f] perlexpr [filenames]
This is the RHEL/CentOS version that doesn’t:
call: rename.orig from to files…
Hope this helps someone out there, and thanks for the script Arto!