Difference between revisions of "Chef: Editing a file"
Jump to navigation
Jump to search
(Created page with " replace_or_add "why hello" do path "/some/file" pattern "Why hello there.*" line "Why hello there, you beautiful person, you." end == See also == * {{sed}} Cat...") |
|||
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.*" |
Revision as of 06:54, 27 July 2021
replace_or_add "why hello" do path "/some/file" pattern "Why hello there.*" line "Why hello there, you beautiful person, you." end
See also
sed, gsed
,-n, -i
,Ansible: replace
,append
,Chef: Editing a file
,lineinfile
Advertising: