I have a file with the following contents.
DTP
START
START
START
DTP
START
DTP
START
DTP
START
I like to join the lines like this
DTP START
START
START
DTP START
DTP START
DTP START
DTP START
My Shell is csh
I have a file with the following contents.
DTP
START
START
START
DTP
START
DTP
START
DTP
START
I like to join the lines like this
DTP START
START
START
DTP START
DTP START
DTP START
DTP START
My Shell is csh
paste -sd' \n' file
awk '{s=s?s" "$0:$0}
/START/{print s;s=""}' file