Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Use awk command to print usernames on the system that begin with s and their UID

ID: 3797393 • Letter: U

Question

Use awk command to print usernames on the system that begin with s and their UID.
Awk command should start with: awk 'BEGIN { FS=":" } ...' /etc/passwd
...' being what you need to write for this to work. Use awk command to print usernames on the system that begin with s and their UID.
Awk command should start with: awk 'BEGIN { FS=":" } ...' /etc/passwd
...' being what you need to write for this to work.
Awk command should start with: awk 'BEGIN { FS=":" } ...' /etc/passwd
...' being what you need to write for this to work.

Explanation / Answer

1.BEGIN {

2. FS=":"

3. }

4. { print $1 }

awk -F ':' '{ print $1 } ' /etc/passwd

awk -F ':' '{ print $1 } ' /etc/passwd | sort