huotuw
Last Updated: February 25, 2016
·
545
· runexec

Code line counts with Clojure and Bash

[user m]$ echo "(prn (+ `find ./ -iname \"*.clj\" -exec wc \-l {} \; | cut -f1 -d ' ' | tr '\n' ' '`))" > /tmp/add.clj
[user m]$ clj /tmp/add.clj 
2152
[user m]$ cat /tmp/add.clj 
(prn (+ 87 86 15 50 80 109 9 24 15 87 16 44 83 102 116 15 111 62 108 19 123 97 82 56 83 88 0 113 106 32 35 99 ))