Combining audio files in Terminal with cat f1.aif f2.aif >> f3.aif
There are a number of GUI methods for this (we use Amadeus; Join Files), but I want to script it. Several sites suggest the Unix/Terminal command cat (for mp3s). I did this with aif files and while the resulting file is the expected size, when I open it in Amadeus Pro I only get the first file. I can't get it to work with text files either.
I've tried:
cat file1.aif file2.aif >> file3.aif
cat file1.aif > file3.aif ; cat file2.aif >> file3.aif
and even
cat test1.rtf test2.rtf >> test3.rtf
Likewise, the content of the second text file is missing. However,
ls > file1 ; man cat > file2 ; cat file1 file2 >> file3
does work.
Several sites show examples for mp3 files:
cat f1.mp3 f2.mp3 >> f3.mp3
Similarly, I tried it with mp3s and I only get the first file.
What am I doing wrong?
< Edited by Host >
MacBook Pro, Mac OS X (10.5.8)