I need to parse the /etc/passwd
file in the most efficient way
I know I can use the command cat /etc/passwd | awk -F: '{print $1}'
but it gets everything in the row, how can I narrow the column so it only gets one input?
I can also make an output file for every row and read from that but that seems like it is ineffective.
edit: so for example, I only need one username from the /etc/passwd
file
as
user: x
gid: y