News for hackers. Stuff that matters.
Re:Pipeable Ruby - forget about grep / sed / awk / wc ... by Kototama on Thursday April 21, 2011 @07:36AM (#2470224)
I though Ruby was an answer to Perl but yet it does not support the equivalent of "perl -pe"? Or did I miss something?
Re:Pipeable Ruby - forget about grep / sed / awk / wc ... by telemachos on Thursday April 21, 2011 @08:09AM (#2470316)
Many people (including Matz) discourage Ruby's Perlisms (or Perlish roots?), but at least for now, they're still there. (I say at least for now because Matz has said that they may go away at some point.)

Check man ruby and you'll see familiar (if you're used to Perl one-liners) command-line switches: -p, -l, -n, -F, -a, -i and so on.

See also here for some familiar friends: http://www.zenspider.com/Languages/Ruby/QuickRef.html#19

Re:Pipeable Ruby - forget about grep / sed / awk / wc ... by jimm on Thursday April 21, 2011 @07:42AM (#2470239)
You missed something. Ruby can do the same thing.