I have a file containing the following string with hundreds of these lines:
Jun 30;[email protected];[email protected]
Jun 30;[email protected];[email protected]
Jun 30;[email protected];[email protected]
Jun 30;[email protected];[email protected]
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 \ \