From ba95015a09bc465533666b38609b4fb1e0177139 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Mon, 26 Feb 2018 13:32:14 +0200 Subject: Reorganize plugins dir structure Signed-off-by: Dmitriy Zaporozhets --- plugins/examples/save_to_file.clj | 3 +++ plugins/examples/save_to_file.rb | 3 +++ 2 files changed, 6 insertions(+) create mode 100755 plugins/examples/save_to_file.clj create mode 100755 plugins/examples/save_to_file.rb (limited to 'plugins/examples') diff --git a/plugins/examples/save_to_file.clj b/plugins/examples/save_to_file.clj new file mode 100755 index 00000000000..a59d83749d3 --- /dev/null +++ b/plugins/examples/save_to_file.clj @@ -0,0 +1,3 @@ +#!/usr/bin/env clojure +(let [in (slurp *in*)] + (spit "/tmp/clj-data.txt" in)) diff --git a/plugins/examples/save_to_file.rb b/plugins/examples/save_to_file.rb new file mode 100755 index 00000000000..61b0df9bfd6 --- /dev/null +++ b/plugins/examples/save_to_file.rb @@ -0,0 +1,3 @@ +#!/usr/bin/env ruby +x = STDIN.read +File.write('/tmp/rb-data.txt', x) -- cgit v1.2.3