Join two specific lines in a text file
I have a large file composed of questions and answers. Most of the questions are split on two lines, for example:
How to we doI would like to join those those lines with the help of a script to have:
How to we do something with Linux?How could we script something to join those lines? My guest is with awk but besides spelling it, I know nothing about it.
If your file is as this (named yourfile.txt):
How to we do
something with Linux?
I gave it a try and got the following error:
Thanks for your help. I will have to find a good tutorial to understand awk, once and for all.
|All times are GMT -5. The time now is 01:33 AM.|