Skip to content

Instantly share code, notes, and snippets.

@sushain97
Last active August 29, 2015 14:05
Show Gist options
  • Save sushain97/fd4f84f1e51c210741b9 to your computer and use it in GitHub Desktop.
Save sushain97/fd4f84f1e51c210741b9 to your computer and use it in GitHub Desktop.
$ ./localisation-tools.py cleanup `find . -regextype sed -regex ".*/[a-z]\{3\}\.json" -printf "%f "` && grep "completion" *.json | sort -nrk1.33,1.35 -nrk1.38,1.43 | awk -F '"' 'BEGIN {print "{| class=\"wikitable\"\n|-\n!|code\n!|CBE*\n!|CBC**" } {sub(/\..*$/, "", $1); split($4, s, " "); print "|-\n|| " $1 " || " s[1] " || " s[2]} END { print "|}\n\n&nbsp;*CBE: completion by entries <br>\n&nbsp;**CBC: completion by characters"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment