Skip to content

Instantly share code, notes, and snippets.

@houmei
Created February 18, 2015 19:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
IR receiver log analyze
BEGIN{
IR["CF308F7"]=1;
IR["CF38877"]=2;
IR["CF348B7"]=3;
IR["CF3C837"]=4;
IR["CF328D7"]=5;
IR["CF3A857"]=6;
IR["CF36897"]=7;
IR["CF3E817"]=8;
IR["CF318E7"]=9;
IR["CF39867"]=10;
IR["CF358A7"]=11;
IR["CF3D827"]=12;
}
# $0=="FFFFFFFF" {next;}
{
if (IR[$0]>0) OK++;
TOTAL++;
}
END{
print OK/TOTAL ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment