Concatenating several .mp3 files into one .mp3

Posted by Bakhtiyor on Ask Ubuntu See other posts from Ask Ubuntu or by Bakhtiyor
Published on 2011-01-07T19:04:21Z Indexed on 2011/01/07 19:58 UTC
Read the original article Hit count: 560

Filed under:
|
|

As it was suggested here I am using cat command to concatenate several .mp3 files into one .mp3 file.

Imagine, I have following .mp3 files in the current folder:

001001.mp3 001002.mp3 001003.mp3 001004.mp3 001005.mp3

or, like this:

096001.mp3 096002.mp3 096003.mp3 096004.mp3

I need to concatenate these .mp3 files in there ascending sequence, i.e. 001001.mp3+001002.mp3+001003.mp3+etc.

In order to join these .mp3 files into one I am executing following command in the current folder:

cat *.mp3 > final.mp3

I tested the final .mp3 file and it is what I am expected, but I need to be sure that above command picks files in there ascending sequence.

Can I be sure that above command always concatenates files in the ascending sequence?

Thank you Sir!

© Ask Ubuntu or respective owner

Related posts about command-line

Related posts about bash