On Sun, 14 Mar 2004, Rob Ellis wrote:

> This works with sed in /bin/sh and ksh:
>
> sed -e 's/  */\
> /g' my_test_text_document.txt
>
> I.e., escape an actual newline.

I used to do that, or include an actual newline in a script, but it just
seems wrong from maintainability and readability standpoints.

It seems slightly better to get a newline in a shell variable and then
use that.

-Warren Block * Rapid City, South Dakota USA
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to