A message for Linux.com registered users: We are in the process of making changes to the Linux forums. Starting Monday, 8/13/18 at 6:00 PM PT, you will be unable to access the forums. They will re-launch as soon as possible on Wednesday, 8/15/18 with new features and improved functionality. Thank you for your patience and stay tuned for the new improved forums.

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

Click Here!