"Fossies" - the Fresh Open Source Software Archive

Member "links-1.03/intl/synclang.awk" (16 Mar 2002, 237 Bytes) of archive /linux/www/links-1.03.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) (G)AWK source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/awk -f
    2 BEGIN {
    3     FS=","
    4 }
    5 
    6 /^T_/ {
    7     s2=$2;
    8     for(i = 3; i <= NF; i++) s2 = s2","$i;
    9     aa[$1] = s2;
   10 }
   11 
   12 END {
   13     while (getline < "english.lng") {
   14         if (aa[$1] != "") printf("%s,%s\n", $1, aa[$1]);
   15         else printf("%s, NULL,\n", $1);
   16     }
   17 }