Hacker News new | past | comments | ask | show | jobs | submit login

mine is called ruby-each-line:

    #!/usr/bin/env ruby

    if ARGV.size != 1
      puts "USAGE: ruby-each-line CODE"
      exit
    end

    STDIN.each_line do |line|
      line = line.strip
      l = line
      eval(ARGV.first)
    end



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: