Skip to content

Instantly share code, notes, and snippets.

@zvlex
Created September 22, 2014 07:14
Show Gist options
  • Save zvlex/e62feac93ebec09c51c6 to your computer and use it in GitHub Desktop.
Save zvlex/e62feac93ebec09c51c6 to your computer and use it in GitHub Desktop.
Rename all *.txt to *.text
# Rename all *.txt to *.text
for f in *.txt; do
mv -- "$f" "${f%.txt}.text"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment