Thank you Feherke (!!) but none of the solutions is working. The crlf stays there like set in stone. Something strange is going on here, in my previous post I mentioned that I had to correct the binmode option under Windows to make it fly. I suspect thats the same reason here. crlf is neither...
Btw
I am working on a Windows 7 machine and I have to modify the command this way to work for me:
Call
gawk.exe -v RS="" -f <prog> <in> > <out>
Prog
{
BINMODE=3
gsub(/\n/,"\b")
}
1
I dont know why but it only works this way for me ... It took me hours to figure that out with the...
ups ... [sadeyes]
Sorry I missed the correct end of my data line and this is what the question turns to be a little bit more complicated
So this ...
11 "" 60000 0 "B2009<crlf>15301" "ER" 08/10/09 300,83 "H" 10 0<crlf>
should go to ...
11 "" 60000 0 "B2009<char(8)>15301" "ER" 08/10/09 300,83...
Hi,
I am looking for a AWK program to substitute a crlf in a string with a different character, i.e chr(8).
So the input is like
11 "" 60000 0 "B2009<crlf>15301" "ER" 08/10/09 300,83 "H" 10 0
and the result should be like
11 "" 60000 0 "B2009<char(8)>15301" "ER" 08/10/09 300,83 "H" 10 0
Is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.