News for hackers. Stuff that matters.
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

There are no comments on this comment yet.