Skip to content

Instantly share code, notes, and snippets.

@tjennings
Created December 10, 2009 02:34
Show Gist options
  • Save tjennings/253066 to your computer and use it in GitHub Desktop.
Save tjennings/253066 to your computer and use it in GitHub Desktop.
(require ['clojure.contrib.shell-out :as 'shell])
(defn user-prop
[key]
(System/getProperty (str "user." key)))
(defn find-files
[]
(shell/sh "find" (user-prop "home") "-name" "*.clj"))
(println (find-files))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment