Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to merge 2 files using awk 1

Status
Not open for further replies.

anirvir

Technical User
Jul 1, 2009
3
0
0
US
I want to join file1 and file2 as shown in file3. Can anyone help me?

file1

/prod11idbf/oradata/PROD11i/CSSDM.dbf
/prod11idbf/oradata/PROD11i/abmd01.dbf
/prod11idbf/oradata/PROD11i/abmx01.dbf
/prod11idbf/oradata/PROD11i/ahld01.dbf
/prod11idbf/oradata/PROD11i/ahlx01.dbf


file2

/devdbf/oradata/DEV/CSSDM.dbf
/devdbf/oradata/DEV/abmd01.dbf
/devdbf/oradata/DEV/abmx01.dbf
/devdbf/oradata/DEV/ahld01.dbf
/devdbf/oradata/DEV/ahlx01.dbf



I want file3

/prod11idbf/oradata/PROD11i/CSSDM.dbf /devdbf/oradata/DEV/CSSDM.dbf
/prod11idbf/oradata/PROD11i/abmd01.dbf /devdbf/oradata/DEV/abmd01.dbf
/prod11idbf/oradata/PROD11i/abmx01.dbf /devdbf/oradata/DEV/abmx01.dbf
/prod11idbf/oradata/PROD11i/ahld01.dbf /devdbf/oradata/DEV/ahld01.dbf
/prod11idbf/oradata/PROD11i/ahlx01.dbf /devdbf/oradata/DEV/ahlx01.dbf


Thanks in advance.
 
man paste

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top