A line filter reads stdin, transforms each line, and writes stdout. bufio is not exported, so copy stdin into a strings.Builder and split the text. |
(require '[clojure.string :as string])
(let [buf (new strings.Builder)]
(io.Copy buf os.Stdin)
(doseq [line (string/split-lines (str buf))]
(println (string/upper-case line))))
|