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
It's only fair to share...Tweet about this on TwitterShare on Google+Share on FacebookShare on LinkedInEmail this to someone
Twitter Auto Publish Powered By : XYZScripts.com