News for hackers. Stuff that matters.
Re:Pipeable Ruby - forget about grep / sed / awk / wc ... by jojo1 on Thursday April 21, 2011 @08:42AM (#2470384)
How fast is it?
Re:Pipeable Ruby - forget about grep / sed / awk / wc ... by jojo1 on Thursday April 21, 2011 @10:41AM (#2470765)
Go home pru...

rw@raccoon:~> du -h messages

19M messages

rw@raccoon:~> time grep -e "foobar" < messages

real 0m0.030s

user 0m0.022s

sys 0m0.008s

rw@raccoon:~> time pru /foobar/ < messages

real 0m0.796s

user 0m0.722s

sys 0m0.071s

Re:Pipeable Ruby - forget about grep / sed / awk / wc ... by billybob on Thursday April 21, 2011 @11:39AM (#2471015)
A valid question, but a counter-question is: which is more expensive: development time, or run time?

The answer is usually (but not always) developer time.

Re:Pipeable Ruby - forget about grep / sed / awk / wc ... by jojo1 on Thursday April 21, 2011 @11:56AM (#2471082)
I'm using grep/awk/sed all day long, I need never more than 10 seconds to build a command group...