• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Gnuwin32 sed

harvt5

Junior Member
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:
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:
Back
Top