How to overwrite every time a particular portion of a file?
---------- Post updated at 02:16 PM ---------- Previous update was at 02:07 PM ----------
I have a file whose contents are something like:
Output of "apachectl fullstatus" command:
---------------------------------------------
---------------------------------------------
---------------------------------------------
---------------------------------------------
End of Output of "apachectl fullstatus" command
------------------
-------------------
--------------------
every thing else
---------------------------
I want to overwrite only the portion starting from "Output of" to "End of . . . .command" with the output of the "apachectl fullstatus" command run after a given interval of time.
---------- Post updated at 04:30 PM ---------- Previous update was at 02:16 PM ----------
Any help will be highly appreciated..