Hello, I am using awk to match text in a tab separated field and am able to do so when matching the exact word. My problem is that I would like to match any sequence of text in the tab-separated field without having to match it all. Any help will be appreciated. Please see the code below.
Hmm... I think using just awk may be easier after all:
awk -F"\t" 'BEGIN{
while(getline < "strings.txt")
a[$0]=$0 } #read in the strings and store in array
{
for(i in a) #loop through stored string
if($6~a)
{print $0; next} #match; print and go to next line
}' input.txt