From ed310197dd4372362127e306497e0d3641c49798 Mon Sep 17 00:00:00 2001 From: "Paul R. Tagliamonte" Date: Sat, 23 Mar 2013 14:33:04 -0400 Subject: [PATCH] Adding in a hylarious example --- eg/sh/tagwords.hy | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 eg/sh/tagwords.hy diff --git a/eg/sh/tagwords.hy b/eg/sh/tagwords.hy new file mode 100644 index 0000000..6ca5a35 --- /dev/null +++ b/eg/sh/tagwords.hy @@ -0,0 +1,5 @@ +;; python-sh from hy + +(import-from sh cat grep) +(print "Words that end with `tag`:") +(print (-> (cat "/usr/share/dict/words") (grep "-E" "tag$")))