I was trying to hack together a quick command template without having to add a script to libexec, but I'm finding that I can't use awk to print field variables because the zencommand is apparently trying to expand them. E.g. I can't do this:

ntpdate -q ${dev/manageIp} | awk '/time/ {print "NTP OK: | t_offset="$10}'

Neither a single nor a double backslash seems to escape the '$' symbol. What syntax am I looking for here?

Double the $ so you have $$10
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to