]>
git.rmz.io Git - dotfiles.git/blob - bin/old/old_addName
4 # This script adds the name of the episode by parsing the list taken from epguides.com
5 # shortend to only contain the episodes of the current season in a specific text File.
6 # This file has to start with the first episode.
7 # All the video files have to be in chronological order.
9 # I definitely need to learn Perl to do a better script!!!
14 line
=$(awk 'FNR == "'"$episode"'"' season1.txt);
18 if [ ${#episode} -eq 1 ]; then
19 newname
="Scrubs 8x0${episode} $name.avi";
21 newname
="Scrubs 8x${episode} $name.avi";
23 #cp "$file" "$newname";
26 episode
=$(( $episode + 1 ));