batch rename files format code example
Example 1: change all file to another
for f in *.txt; do
mv -- "$f" "$(basename -- "$f" .txt).text"
done
Example 2: rename all files in a folder command line
for file in Picture*.jpg
do
mv "$file" "vacation-$file"
done