Gnuwin32 sed

harvt5

Junior Member
Apr 22, 2010
9
0
0
I would like to be able to replace each new lines with the letter f.

but I can't get it to work

C: \ czp>type g.g | sed -e "s/\r\n/f/g"
a aa

b bb
c cc

C: \czp>type g.g | sed -e "s/\x0D\x0A/f/g"
a aa

b bb
c cc


C: \czp>type g.g | sed -e "s/\d013\d010/f/g"
a aa

b bb
c cc
 
Last edited:

harvt5

Junior Member
Apr 22, 2010
9
0
0
great link, thanks..

On top of what that link says..

I read it's also funny with special characters generally..
the control characters i guess..

This link mentions that the windows version of sed sees the EOF char (ascii 26 decimal), and stops reading the data stream.

funnily enough there is a binary option (perhaps very new), (as oppose to the text mode sed was designed with), but those examples still don't work in it.
 
Last edited: