$ rename -p="*xyz*" # rename all files by pattern
$ rename -e=doc # rename .doc files
$ rename -v # rename all files and print verbose
$ rename -f # rename all files renamed with same format before
$ rename --format="%Y:%m:%d" # rename by given pattern (Y/m/d)
$ rename -b="BEFORE_" -a="_AFTER" # add text before and after file names (BEFORE_file_AFTER.extension)
Options
-v --verbose
-p --pattern # -p option overwrites -e,--extension
-e --extension # use extension or pattern.not together.
-v --verbose
-f --force
-a --after
-b --before
--format
--backup # create a backup file for restore
--restore # restore names from a backup file