I have a file containing the following string with hundreds of these lines:
Jun 30;donotreply@my.com;user@example.com
Jun 30;donotreply@my.com;user2@example2.com
Jun 30;donotreply@my.com;user3@example.net
Jun 30;donotreply@my.com;user4@example.org
And tried
VARIABLE=example.net
awk -F ";" ~ $3 /$VARIABLE/
is not working
I also tried,
awk -v var="$VARIABLE" -F ";" '$3 ~ /var/'
: but it is also not giving any results
How can we add variable inside \ \