Skip to content

Instantly share code, notes, and snippets.

@fbettag
Created September 15, 2012 21:51
Show Gist options
  • Select an option

  • Save fbettag/3729952 to your computer and use it in GitHub Desktop.

Select an option

Save fbettag/3729952 to your computer and use it in GitHub Desktop.
cfengine search and replace string
bundle edit_line replace_with_content(regex,content) {
replace_patterns:
"^($(regex))$"
replace_with => content("$(content)"),
comment => "Search and replace string";
}
body replace_with content(c) {
replace_value => "$(c)";
occurrences => "all";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment