I have a directory full of images:
DSCN4749.JPG
DSCN4750.JPG
DSCN4892.JPG
...
And I would like a one-liner to rename them to (say).
dscn4749.jpg
dscn4750.jpg
dscn4892.jpg
...
How do I do this?
Alternatives/extenstions/caveats
- I want to recurse
- The directory contains a mix of file types I only want to rename DSCN*.JPG files.
- bash solution
- perl solution
- zsh solution
- I want a new directory tree with hard links existing files.
- I want to change name more than just a case change eg dscn5555.JPG to 05555.jpg
...