Skip to content

Instantly share code, notes, and snippets.

@NegatioN
Created November 30, 2021 19:37
Show Gist options
  • Save NegatioN/79bf52d5b2b95e0f3f7d2e98264a4907 to your computer and use it in GitHub Desktop.
Save NegatioN/79bf52d5b2b95e0f3f7d2e98264a4907 to your computer and use it in GitHub Desktop.
Rename sed script
for f in *; do NEW_NAME=$(echo $f | sed -e "s/.*EP\([0-9][0-9]\).*/S06E\1.mkv/g"); mv ${f} ${NEW_NAME}; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment