bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unwanted expansion of variable with nested strings


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
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]