On Wed, Aug 27, 2014 at 8:24 AM, Brian Wilkins <bwilk...@gmail.com> wrote:

> Have you tried with two backslashes '\\' ?
>>
>
> Ah, that was it :)
>

An alternative is to "quote" the bracket by making it a character class:
"[[]"

I used to like this for some reason, but I cannot quite remember why now;
it certainly isn't more readable. I guess maybe because it avoids having to
figure out backslashing (which is especially nasty if you're running awk
with shell environment variable interpolation, within "sh -c" that's being
run by sudo over a remote shell).

Wil

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAMmm3r6dAx7y3xfdv60Qo9PovGYXeOrBzXH2%3Dfj%3Dwr5Zy%2BQ8TQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to