[rancid] Re: Trouble with awk
Wim Livens
wim at livens.net
Wed Jul 12 12:04:38 UTC 2006
> > # cat /usr/local/rancid/var/bsr/configs/* | ./mktop
> > awk: ./mktop:392: sub(/^ +description +"/, ");
> > awk: ./mktop:392: ^ unterminated string
I'm not an awk expert and know nothing about junos, but maybe just try
backslashing that quote?
sub(/^ +description +\"/, "");
It seems weird that it is escaped in the second sub but not in the
first. Both with or without the backslash work on my platform (GNU
Awk 3.1.3) but maybe that's just luck.
Wim.
More information about the Rancid-discuss
mailing list