hello
i'm writing a bash script and i want to use a command and filter it with awk,I do the following:
but i want awk to print column 3 only if column 1 (which is the username) matches the variable $usrCode:last | grep -v "wtmp" | awk '{print $3}'
Is there a way to do this comparison in awk?
thanks