I have a file in which the application prepends data to during runtime. There is no Augeas lense for this file. And I need a text block to be inserted into this file. Any ideas?
Here are some of the ideas I've considered;
file_line with a crazy gigantic regex. But there's no way I can think of to remove the file in the case that the regex does not match. Maybe there's a module out there which allows a regex on a file, where I could use an "if" statement to see if my text block exists, and if it doesn't, use a simple file template?
Use an exec statement. Ughh....
↧