Skip to content

Instantly share code, notes, and snippets.

Created Sep 11, 2013
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_*
mv "$file" "$file.txt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment