summaryrefslogtreecommitdiff
path: root/odd
diff options
context:
space:
mode:
Diffstat (limited to 'odd')
-rwxr-xr-xodd1
1 files changed, 1 insertions, 0 deletions
diff --git a/odd b/odd
index 0bd9336..93aaa80 100755
--- a/odd
+++ b/odd
@@ -3,6 +3,7 @@
STDIN.set_encoding 'utf-8'
STDOUT.set_encoding 'utf-8'
+
i = 1
while line = STDIN.gets
puts line if i%2!=0