Join consecutive lines if condition applies

Posted by Bob_Mesibov on Jun 3, 2020 8:46 AM EDT
BASHing data
Mail this story
Print this story

How to use AWK, or the paste command + sed, to merge lines in a text file based on a condition, such as starting or not starting with a number. It's a handy fix for tables exported to text with embedded newlines.

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Linux

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.