Cat Command - Terminal

Discussion in 'Mac Programming' started by thepope, Nov 30, 2007.

  1. thepope macrumors newbie

    Jan 16, 2007
    I've tried using the Cat Command in the terminal but it won't join my two .avi files. Is this only Unix or can the Mac do it as well.

    1. Open Terminal
    2. Type "cat", then drag first (.avi), then add second (.avi)
    3. put in ">"
    4. and then type the title that you want the new file to have.
    5. It will look live this:

    cat movie1.avi movie2.avi > movie.avi

    I've tried a few times, it creates the movie.avi, but it only has movie1.avi showing up.

    Thanks in advance,
  2. FatGolfer macrumors member

    Oct 3, 2006

    cat movie1.avi > movie.avi
    cat movie2.avi >> movie.avi

    >> appends rather than writes
  3. HiRez macrumors 603


    Jan 6, 2004
    Western US
    I'm pretty sure you can't just append two AVI files together like that and have a joined movie that plays properly. There's a lot of other information in the files like header data. I could be wrong, but I doubt it would work.

    EDIT: Here, try this tool.
  4. FatGolfer macrumors member

    Oct 3, 2006
    It works on Linux - don't know about OS X. The sound may jump out of sync but cat'ing them together should work fine.

Share This Page