Difference between revisions of "Chef: Editing a file"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[replace_or_add]] "why hello" do | [[replace_or_add]] "why hello" do | ||
path "/some/file" | path "/some/file" | ||
− | pattern "Why hello there.*" | + | [[pattern]] "Why hello there.*" |
line "Why hello there, you beautiful person, you." | line "Why hello there, you beautiful person, you." | ||
end | end | ||
+ | |||
+ | == Related terms == | ||
+ | * https://github.com/sous-chefs/line/blob/main/documentation/resources/replace_or_add.md | ||
== See also == | == See also == | ||
* {{sed}} | * {{sed}} | ||
+ | * {{Chef}} | ||
[[Category:Chef]] | [[Category:Chef]] | ||
[[Category:Sed]] | [[Category:Sed]] |
Latest revision as of 05:18, 27 August 2021
replace_or_add "why hello" do path "/some/file" pattern "Why hello there.*" line "Why hello there, you beautiful person, you." end
Related terms[edit]
See also[edit]
Advertising: