The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 07-11-2007
thaduka thaduka is offline
Registered User
 

Join Date: Aug 2005
Posts: 28
merging two lines in a file

Hi All,

I want to merge two lines in a file till the end of the file. So what could be the command to get so.

say file name : sample.txt
contents:
country=1
send apps =1 rece=2
country=2
send apps =3 rece=3
..

...


output:
country=1;send apps =1 rece=2
country=2;send apps =3 rece=3

thanks
Kumar
Reply With Quote
Remove advertisements
!!
Forum Sponsor