Skip to content

Instantly share code, notes, and snippets.

@helton
Last active August 9, 2017 21:44
Show Gist options
  • Select an option

  • Save helton/da80d20ea9568f98662c8260cf44dfd3 to your computer and use it in GitHub Desktop.

Select an option

Save helton/da80d20ea9568f98662c8260cf44dfd3 to your computer and use it in GitHub Desktop.
Rename multiple files using a <rules.txt> file
#!/bin/sh
eval "$(sed 's/^/mv /g' rules.txt )"
"old_filename" "new_filename"
"file1.jpeg" "my_cat.jpeg"
"file2.jpeg" "my_goat.jpeg"
"file3.jpeg" "my_dog.jpeg"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment