linux-l: gawk

Marco Tidow martidow at cs.tu-berlin.de
So Nov 30 20:48:35 CET 1997


(27 Nov 97:Juerg Huber <linux-l at mlists.in-berlin.de>:)

>Hi,
>
>ich probiere schon seit einiger Zeit mit gawk herum
>herum und bekomme das Zeichen ' nicht in die Strings fuer die Ausgabe
>hinein.
>[...]
>escapen wie:
>{print "insert into mlist values(\'"$1"\',\'"$2"\')\\g"}'
>klappt leider nicht.
>
>Hat jemand einen Tip auf Lager?

AWK erlaubt in Strings Zeichen als Hexcode anzugeben:

xxx> awk 'BEGIN {print "foo\x27tick";}'


aber, Einschraenkung laut   
man (g)awk:
       --posix
              This  turns on compatibility mode, with the follow­
              ing additional restrictions:

               \x escape sequences are not recognized.

Marco




Mehr Informationen über die Mailingliste linux-l