You're viewing a comment by James and its responses.

James Permalink
July 31, 2009, 20:49

@Michael - you'd probably want to use Ack (http://betterthangrep.com/) for that task, but here's a one-liner solution in the spirit of this article:

perl -pe '$_ = (/regex/ ? "$.:\t$_" : "")'

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the word "computer_150": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.