Bash: Changing extension to multiple files By Cătălin George Feștilă | 17/02/2017 0 CommentTo change file extension from *.txt file to *.text file use this command into your shell:Shell $ for f in *.txt; do mv -- "$f" "${f%.txt}.text"; done1$ for f in *.txt; do mv -- "$f" "${f%.txt}.text"; done