Hey Guys,
I am looking for a sed one liner to replace an entire line in a file with a certain pattern found. For example.
In logadm.conf.. replace the entire line containing '/var/adm/messages' with '/var/adm/messages -A 90d -C 0 -S 2g -p 1d -s 100m'
I have searched and found stuff about using the holding buffers but just cannot get it to work properly. Or is there an easier way to do this using awk? I have a 2 liner using grep however I want to simplify it.
Thanks