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 _______________________________________________ GnuWin32-Users mailing list GnuWin32-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gnuwin32-users