Glad to help.
cat /etc/passwd | awk -F: '{print $1" "$3" "$4}'
Actually, I could have made it easier for you with something like this....
cat /etc/passwd | awk -F: '{print $1" UID="$3" GID="$4}'
awk -F: '{print $1" UID="$3" GID="$4}'
To break this down to english....
Awk is a relative of the penguin.


I can't remember what it stands for but it's made to scan for patterns.
-F: this tells awk to use the
: for a field separator instead of the normal space or tab. If you run the command: cat /etc/passwd without awk, you will get a better idea of the fields separated by the colon ( : )
print send the results to standard output ( the screen )
$1 says to print the information in the first field. In this case, it is the user name.
" " I put a space between the output fields so it would look better.
There you go. I have lots of fun coming up with more uses for awk and another neat tool called sed.
If you google, you can get lots of examples,
