Thanks for your super swift response rweaver
The text file example fortuitously, includes media essence and Quicktime movies in sequential order - this is not guaranteed. The ultimate aim is to be able to associate each $id to all the $essence that it relates. Whilst my script is ultimately flawed somehow, I'd like the output to be as below, where a 'Match' is indicated where (
emboldened) and non-matched and also highlighted (
italicised) ... I will later include a little logic to use these 'switches' to create ffmpeg commands.
Code:
Media ID - MOVIE1
Checking
MOVIE1
MOVIE1.mov
Match
Checking
MOVIE1
media.dir/MOVIE1.m2v
Match
Checking
MOVIE1
media.dir/MOVIE1.wav
Match
Checking
MOVIE1
media.dir/MOVIE1_1.wav
Match
Checking
MOVIE1
media.dir/MOVIE1_2.wav
Match
Checking
MOVIE1
media.dir/MOVIE1_3.wav
Match
Checking
MOVIE1
MOVIE2.mov
Unlucky
Checking
MOVIE1
media.dir/MOVIE2.m2v
Unlucky
... ETC ...
Thanks for your continuing patience.
dr_strangelove