Home Man
Today's Posts

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
perhaps.....bur certainly better....

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


All times are GMT -4. The time now is 04:46 PM.
Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.