2 # Extended Regular Expression
7 # skip specifics to regcomp/regexec
8 $2 ~ /[msnr$#p^]/ { next; }
17 #{ printf ("<%s> <%s> <%s> <%s>\n", $1, $2, $3, $4); }
21 # nuke any remaining '@'
23 # it means empty lines
26 gsub (/\\\'/, "\\\'\'");
28 if (index ($2, "C") != 0)
30 if (index ($2, "b") == 0)
31 printf ("2@%s@%s\n", $1, $3);
36 if (index ($2, "b") == 0)
37 printf ("1@%s@%s\n", $1, $3);
44 # skip those magic cookies can't rely on echo to gnerate them
45 if (match($3, /[NSTZ]/))
48 # nuke any remaining '@'
50 # it means empty lines
53 gsub (/\\\'/, "\\\'\'");
55 if (index ($2, "b") == 0)
57 printf ("0@%s@%s\n", $1, $3);