I am using the following to list a range of UIDs in /etc/passwd in the range of 5000.
getent /etc/passwd |cut -d: -f: |awk '/5***/'
The problems is that '*' list additional numbers, all I want is anything in the range of 5000.
eg
5001-5400
not
5001-54444
Thanks.
getent /etc/passwd |cut -d: -f: |awk '/5***/'
The problems is that '*' list additional numbers, all I want is anything in the range of 5000.
eg
5001-5400
not
5001-54444
Thanks.