The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-27-2009
pisang pisang is offline
Registered User
  
 

Join Date: May 2009
Posts: 3
Arrow Help with Combining Content of Two files

I'm trying to combine it using awk but still can't figure it out. Here is the file.

cat file1.txt
Mr Smith

Mr John

Ms Linda

cat file2.txt
No 4 Jln Empat
Kuala Lumpur

No 213 Tmn Bunga
Kedah

No 1 Kampung Bukit
Malaysia

I want to combine this file1 and file2 so the output will be:

Mr Smith
No 4 Jln Empat
Kuala Lumpur

Mr John
No 213 Tmn Bunga
Kedah

Ms Linda
No 1 Kampung Bukit
Malaysia

Anybody please help me...