awk print with “:” as seperator
I had to print logged in users with “:” as a separator
used this and worked well
cat /var/log/users.log | awk -F ":" '/1/ {print $5}' | sort -u | wc -l
I had to print logged in users with “:” as a separator
used this and worked well
cat /var/log/users.log | awk -F ":" '/1/ {print $5}' | sort -u | wc -l