2
I have a big list of files with names (videos)
I managed to write all file names in a text file. Now I have a text file with a lot of file names (one episode per line)
Now I need something that can read that text file and tell me what episode E
number is missing
S1-E18-(Date)-(Title)-(Random numbers).mp4
Here is an example of a list
S1-E1-20100526-title-of-video-1400316375.mp4
S1-E3-20100517-title-of-video-15457547.mp4
S10-E5-20100421-title-of-video-14467457.mp4
S5-E7-20120912-title-of-video-17467457.mp4
In this case its easy to see that the files S1-E2
and S10-E4
are missing. but if I have a big list then how can I find the missing files. (Leave Season number S1, S2
) just need to check E
means episode number
The largest existing file's number is S50-E2184
and The Smallest existing file's number is S1-E1
Your example is not very good. – harrymc – 2018-11-27T14:54:44.380
Is the number of episodes for each season fixed? or at least known? – glenn jackman – 2018-11-27T16:15:50.123
@EricF I tried Nothing – Eli Shain – 2018-11-28T13:04:06.863
@harrymc I know my english is not good, – Eli Shain – 2018-11-28T13:05:56.853
@glennjackman Numbers are fixed. – Eli Shain – 2018-11-28T13:06:50.103
2Your English is good enough. I understand that S10-E4 is missing, but what about S10-E1 to E3 and E5 to whatever and we not know the last number. You do not give enough information to understand the full problem. – harrymc – 2018-11-28T13:44:30.500
Maybe you should have asked on https://softwarerecs.stackexchange.com/ ?
– Mawg says reinstate Monica – 2018-11-30T07:35:18.067Sort it with
sort -V
to sort by season then episode, orsort -t- -k2
to sort only by episode. Then you can run a loop or other to get the missing seasons/episodes. – Paulo – 2018-11-30T16:03:43.593