Relative Content

Tag Archive for sedscripting

linux command to replace linefeed happened in the middle of the string

Current file: COl1,COl2,COl3,COl4,COL5 AAA1,AAA1,AAA1,AAA1,AAA1 BBB10,BB11 ,BB22,BB33 BB44 CCCC,CCC1,CCC2,CCC3 ,CCC4,CCC5 Expected: COl1,COl2,COl3,COl4,COL5 AAA1,AAA1,AAA1,AAA1,AAA1 BBB10,BB11,BB22,BB33,BB44 CCCC,CCC1,CCC2,CCC3 Looking for something to check line feed and next line starting with comma then remove the linefeed check line feed and next line starting/not starting with a pattern then remove the next line feed. preferrably with sed. The source is having […]