Created
July 23, 2026 14:57
-
-
Save CodeAsm/4cac5313bc4be9e72f94a56f727119f1 to your computer and use it in GitHub Desktop.
Renumber episodes
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
| for ((i=3; i<=23; i++)); do | |
| old=$(printf "S04E%02d" "$i") | |
| new=$(printf "S04E%02d" $((i-1))) | |
| for f in *"$old"*; do | |
| [ -e "$f" ] || continue | |
| mv -v -- "$f" "${f/$old/$new}" | |
| done | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment