Trouble with awk
Rikard Stemland Skjelsvik <[email protected]> Wed, 12 Jul 2006 10:30:26 +0200 (MEST)
| Newsgroups | gmane.network.toolmakers |
|---|---|
| Message-ID | <[email protected]> |
Hello!
I'm in the process of checking out rancid and other related tools. I was
very intriged by "Managing IP Networks with Free Software" at Nanog.
When trying to run mktop i get the following error message(se below). I a=
m=20
not very familiar with awk and hope that someone on the list could point
me in the right direction.
Thank you for your time!
# ./mktop /usr/local/rancid/var/bsr/configs > bsr.top
awk: ./mktop:392: sub(/^ +description +"/, ");
awk: ./mktop:392: ^ unterminated string
# cat /usr/local/rancid/var/bsr/configs | ./mktop > bsr.top
awk: ./mktop:392: sub(/^ +description +"/, ");
awk: ./mktop:392: ^ unterminated stringth an=20
"}" at line 63
Line 389 to 394 is:
/description "/ && (indent > 1) && (section[1] =3D=3D "interfaces") && \
(config =3D=3D JUNOS) {
sub(/^ +description +"/, "");
sub(/\";$/, "");
new_ifdesc =3D $0;
next;
}
I am running awk version:
# /usr/local/bin/awk --version
GNU Awk 3.1.4
Copyright (C) 1989, 1991-2003 Free Software Foundation
on:
# uname -a
SunOS okm-cw2000 5.8 Generic_108528-27 sun4u sparc SUNW,Sun-Fire-V21=
0
--
Rikard