Created
October 4, 2016 14:59
-
-
Save patdavid/a7a304cb3471230cb0496cb53e4bc3ef to your computer and use it in GitHub Desktop.
Rename a bunch of files including lines from an external file
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
while read -u 9 filename; do read -u 8 newname; mv "$filename.mkv" "$filename - $newname.mkv"; done 9<<<"$(ls -1 *.mkv | sed -e 's/\..*$//')" 8< namelist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Append lines from file to the filename.