I'm looking for a programmatic way to update the newsyslog.conf. I would like to update the counts for secure.log and system.log to 30. The current counts are 5 and 7 (see below). To date the only thing we have found is to use the SEDs command. However, that gets a bit messy b/c of the tabs with in the file and the way the SED command(s) handle them. Is there a better way to modify this entry?
/var/log/secure.log 640 5
/var/log/system.log 640 7
