I use awk
to parse a file. Have stored pattern words in an awk
array. Would like to do something like this.
if ( $0 ~ / arr[1] / ){
blah
}
I want to check if the pattern stored in the array element is found in the current line which is being parsed.