You're replying to a comment by wb.

May 22, 2012, 01:25

hey, great resource here!! appreciate it

statement: awk '/regex/ { print $1 ]' /text-input-file.txt

regarding the above, is it possible for the "regex" char expression to be a var, such as $reg_ex ?

statement: awk '/$reg_ex/ { print $1 ]' /text-input-file.txt

i've tried to escape it and such but no luck.

thanks

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 "network": (just to make sure you're a human)

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