[OT] sed question
wblock at wonkity.com
Sun Mar 14 17:35:24 PST 2004
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
-Warren Block * Rapid City, South Dakota USA
More information about the freebsd-questions