Hi all,
I have a shell variable $test1 that holds a value derived from some other processing. What I need to do is use that $test1 as the input to a awk regular expression:
nawk -F"," -v tester=$test1 '
/tester/{
print $0
}
' $inputFile
So what I have is tester which def has a value. I want to search in the $inputFile for the string in tester but Im presuming /tester/ will look for the literal string 'tester' rather then whats contained within it which is the desired string,
Can someone help out with this,
Thanks,