summaryrefslogtreecommitdiff
path: root/add-index
blob: 77a7e8dea504b7d1e18f50394855442e6c59dba9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env ruby

i = 0
if ARGV.size > 0
  i = ARGV[0].to_i
end

while line = STDIN.gets
  puts "#{i}\t#{line}"
  i += 1
end