Hi,
Here's a line using awk to extract "real" users on my system:
Code:
bash-4.2$ awk -F: '$3 > 999 {print $1}' /etc/passwd | sort
glagaffe
jktartempion
kikinovak
lgibaud
mshanseifan
Does anyone know how I can combine several conditions? I would like, for example, to extract only users with an UID between 1000 and 2000. In other words, $3 > 999
and $3 < 2000. I can't seem to find the correct syntax for that.
Cheers,
Niki