I have a need to turn this input file: This is line 1 ;
This is line 2 ;
This is line 3 ;into this:
This is line 1; This is line 2; This is line 3;
and have been unsuccessful using GnuWin32 SED or AWK.
I need the ability to join these lines so that they are all one line with no Carriage Returns/Line Feeds.
If there is SED or AWK script to do this or some other approach, I would appreciate hearing of it.
Thanks.
Do you have xargs? This works on my unix system: xargs < inputfile
xargs is bundled with window's-unix toolkits like cygwin available at http://www.cygwin.com
tr -d "\n"
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |