August 20, 2011

bash script to join files

Forums: 

Hi,

I am creating a bash script which search video files in a folder and join video files which are splitted into multiple parts.

for e.g.

shark.cd1.avi
shark.cd2.avi

catroon.cd1.avi
cartoon.cd2.avi
cartoon.cd3.avi

so as to make a single file for e.g. shark.avi and cartoon.avi

Please tell me some tips and suggestions, how to do it. i.e. what way i can find and join the files accordingly ordered by ther cd number.

Thanks

usmangt