Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3214107
By: keithmarshall

On my GNU/Linux box, this...

echo "1111'222?'22'33?'333'44444'555" | sed "s/\([^?]\)'/\1'\n/g"

produces the effect you are seeking, except that I simply get a literal letter
"n" instead of a newline -- this is because I still have GNU sed v3.02, which
doesn't interpret C style character escapes.

Your expression looks correct, but you may have to adjust the quoting and number
of escapes (backslashes) -- it will undoubtedly be different on Win32, from
what I would use on GNU/Linux.  If you use it in a sed script, it should be
correct as it stands.

HTH.

Keith.

______________________________________________________________________
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


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users

Reply via email to