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
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.