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$")))