How can I list in alphabetical order all users and also for the first 10 users to see user ID info (column 5).
I know for the first part of the question that I can use like cat /etc/passwd | cut -d ':' -f1, but how about the second part? should i use "for" or "if" or something like this?