- rename
- glob
One-liner: Rename many files
- Rename every .log file adding an extra extension of .old
perl -e "rename $_, $_ . '.old' for glob '*.log'"
- Rename every .log file replacing .log with a timestamp
perl -e "$t = time; rename $_, substr($_, 0, -3) . $t for glob '*.log'"