summaryrefslogtreecommitdiff
path: root/strip_whitespace
diff options
context:
space:
mode:
Diffstat (limited to 'strip_whitespace')
-rwxr-xr-xstrip_whitespace6
1 files changed, 6 insertions, 0 deletions
diff --git a/strip_whitespace b/strip_whitespace
new file mode 100755
index 0000000..37c02e5
--- /dev/null
+++ b/strip_whitespace
@@ -0,0 +1,6 @@
+#!/usr/bin/env ruby
+
+while line = STDIN.gets
+ puts line.lstrip.strip
+end
+