# sed script for preprocessing BFD header files # activity: /^\/\*$/{ N # Delete empty comment blocks /^\/\*\n\*\/ *$/d # Transpose s/^\/\*\n *$/\ \/*/ # merge on line by itself with following line s/^\/\*\n\(.*\)/\/* \1/ }