|
From: | Mike Stroyan |
Subject: | Re: unwanted expansion of variable with nested strings |
Date: | Thu, 4 May 2006 09:08:16 -0600 |
A little more bash syntax can quote newlines for awk. $ foo="a b c" $ lf=" " $ gawk 'BEGIN {foo="'"${foo//$lf/\\n}"'"} END {print foo}' /dev/null a b c -- Mike Stroyan stroyan@gmail.com
[Prev in Thread] | Current Thread | [Next in Thread] |