If you want to find how many users including system users are there in server,Below bash script will find user list from the server.After that you can sort it according to your need.To download script click here.
Code:
#!/bin/bash
/bin/cat /etc/passwd | /usr/bin/cut -d: -f1
Code:
#!/bin/bash
/bin/cat /etc/passwd | /usr/bin/cut -d: -f1