How to merge files in bash in alphabetical order
问题 I need to merge a bunch of mp3 files together. I know that simply doing cat file1.mp3 >> file2.mp3 seems to work fine (at least it plays back correctly on my Zune anyway). I'd like to run cat *.mp3 > merged.mp3 but since there are around 50 separate mp3 files I don't want to be surprised halfway through by a file in the wrong spot (this is an audio book that I don't feel like re-ripping). I read through the cat man pages and couldn't find if the order of the wildcard operator is defined. If