rename all the files in a folder code example
Example 1: change all file to another
for f in *.txt; do
mv -- "$f" "$(basename -- "$f" .txt).text"
done
Example 2: batch rename folder
REM # | EXAMPLE (changes the ChangeMyName folder's name to NameChanged)
rename "C:/Users/JacquesK/ChangeMyName" "NameChanged"
REM # | SYNTAX
REM # | rename "<folder-to-change-the-name-of>" "<new-folder-name>"