Skip to content

Instantly share code, notes, and snippets.

@neilhwatson
Created November 30, 2016 17:04
Show Gist options
  • Save neilhwatson/1c8a8874e528029393f5948aa69518b1 to your computer and use it in GitHub Desktop.
Save neilhwatson/1c8a8874e528029393f5948aa69518b1 to your computer and use it in GitHub Desktop.

Revisions

  1. neilhwatson created this gist Nov 30, 2016.
    23 changes: 23 additions & 0 deletions quotetest.cf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    neil@luna:~/.cfagent/inputs$ cat quotetest.cf

    body common control
    {
    bundlesequence => { "main", };
    }

    bundle agent main {
    vars:
    'var1' string => 'with single quotes';
    "var2" string => "with double quotes";
    `var3` string => `with backticks`;

    reports:
    '${var1}';
    "${var2}";
    `${var3}`;
    }

    neil@luna:~/.cfagent/inputs$ cf-agent -Kf quotetest.cf
    R: with single quotes
    R: with double quotes
    R: with backticks