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

James Permalink
July 31, 2009, 22:29

@Peter - thanks for the great article! I enjoyed reading it. I saw examples #12 and #13, but I noticed that they do not print out the line numbers. Instead they simply number the lines that matched. So, let's say that the 5th instance of a match in the file exists on line 52. Examples #12 and #13 will print out "5" for the number instead of "52". That's why I added the additional example in the comments here to print out the actual line number of the matching lines.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

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

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