How to change the contents of file when this file is already present?
I want to change the contents of file when this file is already present on agent machine For e.g. Suppose this is the file as demo.txt The contents of demo.txt is, Welcome, Hello world I m working in company I want to replace the "I m working in company" as 'Bye Bye' So how to write code for that in manifest? What code I should written in my puppet manifests? Please help me for that. Please give me answer because I m doing a lots of searching on that thing. So please help me.