Find the answer to your Linux question:
Results 1 to 2 of 2
Hey guys, Very simple I would assume, but I just can't seem to find the answer. Here goes. File1 has 1 column with text File2 has 1 column with text ...
  1. #1
    Just Joined!
    Join Date
    Oct 2007
    Posts
    7

    Concatenating Columns from seperate files--- HELP!

    Hey guys,

    Very simple I would assume, but I just can't seem to find the answer.

    Here goes.

    File1 has 1 column with text
    File2 has 1 column with text

    I want to take file1/column1/line1 and append it in file2/column1/line1
    and so on for line2 to line2 etc...

    Here is an example.

    File1:
    --------
    John
    Mary
    Dan

    File2:
    --------
    Doe
    Poppins
    Scott

    Results file:
    ------------
    John Doe
    Mary Poppins
    Dan Scott

    Much appreciate for the help guys!


    Scorp

  2. #2
    Just Joined!
    Join Date
    Oct 2007
    Posts
    37
    You can use paste.

    paste file1 file2 and then redirect output to another file if needed

    Try: man paste

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...