Created
September 15, 2012 21:51
-
-
Save fbettag/3729952 to your computer and use it in GitHub Desktop.
cfengine search and replace string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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