Hello,
I have a line that needs to be removed using sed -i to perform the replace in place. The issue that I have is the files on each server may contain extra rows after the last logger definition. So I can't count accurately from the last row.
So from the example the line that contains @watchdog could have 5 blank lines under it or 3.
TEXT:
# Save boot messages also to boot.log
local7.* /var/log/boot.log
local1.* /var/log/prod/prod.log
local1.* @sysmon
local1.* @watchdog
DESIRED RESULTS:
# Save boot messages also to boot.log
local7.* /var/log/boot.log
local1.* /var/log/prod/prod.log
local1.* @watchdog
The line that contained @sysmon is gone in the desired results.
Thanks,
jaysunn