The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 -->
  #7 (permalink)  
Old 07-17-2008
ca_sr2274 ca_sr2274 is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 2
Hi All,

How to combine the two lines of records in a single line using unix shell scripts.

here the file format:
first line
ABC0001 F0000000000677249 677
second line.
ABC00029980000 00000 USA0001099

I would like the output as following
ABC0001 F0000000000677249 677ABC00029980000 00000 USA0001099

need to merge the above two line into a single records.

Please help.

Thanks
ca_sr2274