Skip to content

Instantly share code, notes, and snippets.

@dylan-k
Created September 11, 2013 01:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dylan-k/6518333 to your computer and use it in GitHub Desktop.
Save dylan-k/6518333 to your computer and use it in GitHub Desktop.
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