I have a log file that displays data 3 lines at a time. Like this:
1 data 2 data 3 data 1 data 2 data 3 data 1 data 2 data 3 data I'd like to take each 3 lines and display them on 1 line like this:
1 data 2 data 3 data 1 data 2 data 3 data 1 data 2 data 3 data I'd like to be able to cat this file and then pipe it through a command(s) that will do this for me. I suspect sed or awk are a solution.