Can you delete a set of lines from a text file using the line numbers [closed]
I am new to puppet. So my advance apologies if the question here doesn't make sense. What I am trying to accomplish here is that I have a text file, which has lots of entries. I would like to trim the file content before distribution. Here in this case, I would like to remove all the lines to the end of the file, after certain comment point.
Is is feasible to accomplish this using puppet?