I need to develop a script to join multiple three lines in a log file into one line for processing with awk and grep. I looked at tr with no success. The first line contains the date time information. The second line contains the error line. The third line is a blank line.
$ cat file1
line one
line two
line three
line four
line five
line six
$ paste -d" " - - - < file1
line one line two line three
line four line five line six