check if it's right (if not, you could just choose from this list the ones that aren't right :P):
#Run inside msn/: #0: we get rid of older searchs rm zzzz* #First: we get all the disctinct keys on the file zzzzuniquekeys (from all files, because maybe there are old keys in some languages, and not in english) cat `ls lang/lang* | grep -v "\."` | tr '\t' ' ' | cut -f 1 -d ' ' | sort | uniq > zzzzuniquekeys #Second: we get every used key on the file zzzzusedkeys grep -re "\[trans\ *" *tcl */*tcl */*/*tcl */*/*/*tcl */*/*/*/*tcl */*/*/*/*/*tcl */*/*/*/*/*/*tcl >& zzzzusedkeys1 grep -re "\[list\ local\ *" *tcl */*tcl */*/*tcl */*/*/*tcl */*/*/*/*tcl */*/*/*/*/*tcl */*/*/*/*/*/*tcl >& zzzzusedkeys2 grep -re "\[list\ global\ *" *tcl */*tcl */*/*tcl */*/*/*tcl */*/*/*/*tcl */*/*/*/*/*tcl */*/*/*/*/*/*tcl >& zzzzusedkeys3 cat zzzzusedkeys? > zzzzusedkeys #Third: we check every key, those not appearing in the way: [trans KEYNAME* will be written to zzzznonusedkeys echo > zzzznonusedkeys1;for x in `cat zzzzuniquekeys`;do grep -e "\[trans\ $x" zzzzusedkeys > /dev/null || echo $x >> zzzznonusedkeys1;done echo > zzzznonusedkeys2;for x in `cat zzzznonusedkeys1`;do grep -e "\[list\ local" zzzzusedkeys | grep -e $x > /dev/null || echo $x >> zzzznonusedkeys2;done echo > zzzznonusedkeys;for x in `cat zzzznonusedkeys2`;do grep -e "\[list\ global" zzzzusedkeys | grep -e $x > /dev/null || echo $x >> zzzznonusedkeys;done cat zzzznonusedkeys RESULT: acceptfile amsn_lang_version animatedemoticon askprofile autohotmaillog autoidle awaymsg1 awaymsg2 blankdirect blocking blockmessage cantremoveothers changecustomstate changedateformat chatack choosefontcolor convertexplain cprofile dcprofile disabled displaychat editvalue enabled enableproxy extras globalcontainer groupoldname handle hiden installconvert ipdetect leaveblankforhotmail maximised mynick natip nodataavailable noneavailable notifyoffset nousersinsession playing preflibs prefproxy prefshared prefsound proxyconf proxyconfhttp selectplugins soundcommand splashstart startoffline startoffline2 totalsize wintitlenick xmmscurrent xmmserr xmmssend yousay -- Lz ([EMAIL PROTECTED]). http://elezeta.bounceme.net ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ Amsn-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/amsn-devel
