annotate bin/randquote @ 3900:b1b0dcb5ad5e

<fizzie> printf \'%s\\n\' \'#!/usr/bin/env python\' \'import sys\' \'import unicodedata\' \'print u" ".join("[U+{0:04x} {1}]".format(ord(c), unicodedata.name(c, "DUNNO")) for c in " ".join(sys.argv[1:]).decode("utf-8")).encode("utf-8")\' > bin/unidecode
author HackBot
date Fri, 11 Oct 2013 13:57:18 +0000
parents 88b9ca9bef51
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3013
88b9ca9bef51 <oerjan> sed -i \'1i#!/bin/bash\' bin/randquote
HackBot
parents: 3012
diff changeset
1 #!/bin/bash
3012
b8b194e85a34 <oerjan> echo \'quote "$@" | shuf -n 1\' > bin/randquote
HackBot
parents: 3010
diff changeset
2 quote "$@" | shuf -n 1