Created
November 17, 2011 20:55
-
-
Save JKirchartz/1374488 to your computer and use it in GitHub Desktop.
Python one-liner to print a sorted list of unique characters in a string; just change the input file from "test.html" to whatever file you need. This is great for optimizing google webfonts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print 'Unique Characters: %s' % ''.join(sorted(set(open("test.html", "r").read()))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment