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 06-26-2006
srivsn srivsn is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 32
Concatenating the two lines in a file

hi
My requirement is i have a file with some records like this

file name ::xyz

a=1
b=100,200
,300,400
,500,600
c=700,800
d=900

i want to change my file
a=1
b=100,200,300,400
c=700,800
d=900

if record starts with " , " that line should fallows the previous line.please give script or command to get my required output file

thanks