Skip to content

Instantly share code, notes, and snippets.

@morido
Last active January 4, 2016 21:09
Show Gist options
  • Save morido/8678906 to your computer and use it in GitHub Desktop.
Save morido/8678906 to your computer and use it in GitHub Desktop.
Count boolean functions in EFS
all=`awk '{s+=$1} END {print s}' <(find subset-026/ -type f -exec xmlstarlet sel -t -v 'count(//Function)' {} \;)`
boolean=`awk '{s+=$1} END {print s}' <(find subset-026/ -type f -exec xmlstarlet sel -t -v 'count(//Function[@Type="Boolean"])' {} \;)`
echo "$boolean / $all" | bc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment