Created
September 11, 2013 01:38
-
-
Save dylan-k/6518333 to your computer and use it in GitHub Desktop.
add .txt suffix to a batch of files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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