has this snippet:
awk '/^cacert:/{l=1;next;print;next} /^\S/{l=0} l' agent.conf | sed "s/^ *//" > /tmp/ca.cert
(Look for a line that starts with cacert:
and print out all lines until you find one that doesn’t start with whitespace)
has this snippet:
awk '/^cacert:/{l=1;next;print;next} /^\S/{l=0} l' agent.conf | sed "s/^ *//" > /tmp/ca.cert
(Look for a line that starts with cacert:
and print out all lines until you find one that doesn’t start with whitespace)