lazy awk skript for missing phrases

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there, 
to get list of missing phases, I hacked a simple awk script. 
At first: 
cd /pathTopluginSrc/
mkdir i18n-c 

for i in `ls  | grep -v "-" ` ; do  cp ${i}/*i18n.c* i18n-c/${i}-i18n.c;  done

cd i18n-c

then 


for i in `ls *.c `;  do awk -F\" -f test.awk $i >> tr-fra.csv ; done 

You have to set the `lang'  var to your language regarding
the langarray eg. german to  1, sewdish  to 12 and so on. 

ist is not very handy but it does its job ;) 
regards movimax 
-------------- next part --------------
BEGIN {
   lang = 5; line = 0; keyline = 0; 
}
{
   if (NR == 1) 
   {
     print FILENAME, ";\n ;";
   }
   while($0 != /NULL/)
   {
     if(/{/)
     {  
	 keyword = $2
	 keyline = NR;
     }

     if(NR == keyline + lang)
     { 
	 if ($2 =="")
	 {
         print  keyword, ";" ;
	 }
     }
    next;
   }
}

END {
  print ";";
  print ";";
  print ";";
}


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux