≡ Menu

Shell Script To Combine Any Three Text Files Into a Single File

{ 3 comments… add one }
  • Pravin March 5, 2014, 5:07 pm

    There is a typo error on line 36:
    if [ ! -f $file ]
    should be
    if [ ! -f $file3 ]

    • nixcraft March 12, 2014, 9:13 am

      Thanks for the heads up!

  • hunterm October 23, 2010, 2:38 am

    There’s also this really nice command called:
    $ cat file1 file2 file3 >combine

Security: Are you a robot or human?

Leave a Comment