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

September 19, 2011, 07:32

you can install gawk,and do like this:
Syntax:
gawk 'mathc($0,regex,array){print array[1]}' file

example:
gawk 'match($0, "https?:\/\/(.*?google.*?)/", array) {print array[1]}' filename

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

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

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