summaryrefslogtreecommitdiff
path: root/file_hooks/examples/save_to_file.clj
diff options
context:
space:
mode:
Diffstat (limited to 'file_hooks/examples/save_to_file.clj')
-rwxr-xr-xfile_hooks/examples/save_to_file.clj3
1 files changed, 3 insertions, 0 deletions
diff --git a/file_hooks/examples/save_to_file.clj b/file_hooks/examples/save_to_file.clj
new file mode 100755
index 00000000000..a59d83749d3
--- /dev/null
+++ b/file_hooks/examples/save_to_file.clj
@@ -0,0 +1,3 @@
+#!/usr/bin/env clojure
+(let [in (slurp *in*)]
+ (spit "/tmp/clj-data.txt" in))