Instantly share code, notes, and snippets.

Embed
What would you like to do?
add .txt suffix to a batch of files
if you have a batch of files and they all have filenames like poem_01 for example, here's a way to add .txt to the end of all those filenames
for file in poem_*
do
mv "$file" "$file.txt"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment