Ever tried to rename a bunch of files? What's so easy in Windows won't work with the standard mv command. mv doesn't like wildcards and refuses to rename multiple files.

The solution is rename

# dry run/just show what would be done:
rename -n 's/\.JPG/\.jpg/' *.JPG
# rename all files in the current directory with a ".PNG" ending to ".png":
rename 's/\.PNG/\.png/' *.PNG
linux/rename.txt · Last modified: 2013-12 by tb
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready