HowTo: Unix / Linux Rename File Extension From .OLD to .NEW
To rename a file extension from .OLD to .NEW in Unix or Linux, you can use the mv (move) command along with string substitution and a shell loop. Here is an example using a shell script: #!/bin/bash for f in *.OLD; do mv “$f” “${f%.OLD}.NEW” done This script will loop through all files with a … Read more