I have a file with things like serialno, userid and password. When fetching column 3 using awk, a problem crops up for user id jij because of the "*" in the password. How to retrieve the password properly?.
cat testfile
1 abc bnmj134
2 fff u7Tdff
3 jij Qm6Pn*w
a=`grep jij testfile|awk '{print $3}'`
echo $a does not output, showing error as echo : No match.