Created
July 29, 2014 06:52
-
-
Save icholy/e9069da1bb60c7e040d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defmacro $ [&rest cmd] | |
(let [var? (fn [s] (s.startswith "$")) | |
rm-$ (fn [s] (slice s 1)) | |
`@(map (fn [s] (if (var? s) (rm-$ s) `'~s))) cmd) | |
(let [test "hello" | |
data ($ cat foo | grep $test)] | |
(print data) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment