[gnuwin32 - Help] SED won't replace my CR LF's with a space :(

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.windows.gnu.user
Message-ID <[email protected]>
Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4083343
By: kcw

I want to strip carriage-returns and line-feeds from a text file and replace
them with a space using sed.
Neither of the following sed scripts appear to work...

cat test.txt | sed -r "s/[\r\n]+/\x20/g"

OR

sed -r "s/[\r\n]+/\x20/g" test.txt

The test.txt file is returned unchanged.

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.