junk food for the brain …
Posts tagged uid
How to print usernames with a userid greater than 500
Jul 9th
Occasionally, you need to print out a list of usernames, greater than a certain user id. This is usually useful an a slightly larger setup, or when you want to chain more commands to certain users.
Use the awk command.
awk -F":" ' $3 > 200 {print $1} ' /etc/passwd