B"H On 2/14/07, Ralph Shumaker <[EMAIL PROTECTED]> wrote:
In my script, "sed -e 's/\([ a-zA-Z0-9,\.:;?!)'-]\)\n\([A-Z^a-z(]\)/\1 \2/g' 0035 >0036" doesn't change anything, so (as a test) I reduced it down to match one line in particular: "sed -e 's/e\nu/e u/g' 0035" and still no go. But reducing it to: "sed -e 's/e$/eeeeeee/g' 0035" or "sed -e 's/^u/uuuuuuu/g' 0035" works (except that it does nothing to the newline). Any suggestions?
You might want to take a look at this, from the sed FAQ: http://sed.sourceforge.net/sedfaq5.html#s5.10 ------------------------------------------------ 5.10. Why can't I match or delete a newline using the \n escape sequence? Why can't I match 2 or more lines using \n? The \n will never match the newline at the end-of-line because the newline is always stripped off before the line is placed into the pattern space. To get 2 or more lines into the pattern space, use the 'N' command or something similar (such as 'H;...;g;'). ------------------------------------------------ Follow the link for some solutions they provide. Menachem
Thanks in advance. -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
-- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
