This discussion is archived
1 Reply Latest reply: Sep 6, 2012 2:44 AM by Paul M. RSS

Append the file and print the output in a single file in column manner

770322 Newbie
Currently Being Moderated
Hi All,

I have 2 files in UNIX.

File1.txt
------------
NAME SAL
Albert $4567
Monali $7892
Raj $8521

File2.txt
--------------

DOB
12-JUL-1986
5-Aug-1978
13-MAR-1958

so i apped both the file

cat file1.txt file2.txt>>file3.txt

The output of file3.txt was:

NAME SAL
Albert $4567
Monali $7892
Raj $8521
DOB
12-JUL-1986
5-Aug-1978
13-MAR-1958

But i need the output below

NAME SAL DOB
Albert $4567 12-JUL-1986
Monali $7892 5-Aug-1978
Raj $8521 13-MAR-1958

Could you please help me to resolve

Edited by: user10069916 on Sep 6, 2012 12:07 AM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points