concatenate lines using shell scripting

Shell Programming and Scripting




Kindly Note - This is a Single User Post by Forum Member protocomm Regarding:
concatenate lines using shell scripting.
Please Follow The Primary Link Above to View the Full Discussion.

   
Old 09-06-2009
protocomm protocomm is offline
Registered User
 
perhaps.....bur certainly better....

Code:
awk '{if($0 !~ /=/) ORS=""}{if($0 ~/=/) ORS="\n"} {print}' | sed -e 's/=//g' -e 's/,$//g' file