Skip to content

Instantly share code, notes, and snippets.

@emres
Created December 18, 2011 22:27
Show Gist options
  • Save emres/1494671 to your computer and use it in GitHub Desktop.
Save emres/1494671 to your computer and use it in GitHub Desktop.
Language detection in Bash command line - Norvig's problematic example
(echo `cat some_de.txt EN | gzip | wc -c` EN; \
echo `cat some_de.txt DE | gzip | wc -c` DE) \
| sort -n | head -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment