tumichaelf
IS-IT--Management
I have am trying to learn awk, and what I want to do is covert
into an awk 1 liner similar to
(written by feherke ( for me in a separate post).
Thanks,
Michael
Code:
sed -i 's/check_disk\ \-w\ 20\%/check_disk\ \-w\ 15\%/g' /var/tmp/nrpe.cfg
Code:
awk '/^command\[check_disk\]=/&&!/-x \/boot/{$0=$0 " -x /boot"}1' /var/tmp/nrpe.cfg > /var/tmp/nrpe.cfg.new
Thanks,
Michael