Skip to content

Instantly share code, notes, and snippets.

View bigantal's full-sized avatar

bigantal bigantal

View GitHub Profile
@bigantal
bigantal / subtitles-renamer.sh
Last active January 17, 2021 19:33 — forked from colinux/subtitles-renamer.sh
Rename subtitles files according to tv shows names found in a directory. Same as forked one, but recursive
#!/bin/bash
# Renames subtitles files according to tv shows names found in a directory and its subdirectories RECURSIVELY.
# Acceped syntaxes for season/episode are: 304, s3e04, s03e04, 3x04 (case insensitive)
#
# Usage:
# Put this gist somewhere in your $PATH, like /usr/local/bin/subtitles-renamer
# Chmod +x it
# cd ~/YourHolidaysTvShowsWithSubtitles
# subtitles-renamer