On 09.07.2008, at 14:34, Martin Boese wrote: > Just read the IO $stdin, like: > > $stdin.each { |line| puts "Found: #{line}" } > > The < "operator" is a shell feature that will pass the content of a ile to > the programs standard input (stdin). Maybe that's more readable, but my point wasn't the shell feature < . cat.rb has one line: puts *ARGF $ ruby cat.rb < cat.rb puts *ARGF regards, Sandor Szs --