renaming multiple files in linux code example
Example 1: rename multiple files linux
rename 's/old-name/new-name/' files
Example 2: rename multiple files in linux
for f in *.html; do
mv -- "$f" "${f%.html}.php"
done
rename 's/old-name/new-name/' files
for f in *.html; do
mv -- "$f" "${f%.html}.php"
done