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

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.


Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

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

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