From: Robert Klemme Date: 2013-02-14T01:50:22+09:00 Subject: Re: How to exit from the forever loop when using "-np" switch ? On Wed, Feb 13, 2013 at 5:30 PM, Love U Ruby wrote: > Robert Klemme wrote in post #1096696: >> On Wed, Feb 13, 2013 at 4:55 PM, Love U Ruby >> wrote: >>> I was trying to see the how they(-n,-p) works in ruby? >> >> It will read until EOF. >> >> Cheers >> >> robert > > I didn't undersatnd, I mean how to return from here. It continues to the > next line for my every "ENTER" "Input from a terminal never really 'ends' [...]" http://en.wikipedia.org/wiki/End-of-file Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/