Use awk command to print usernames on the system that begin

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.

Solution

1.BEGIN {

2. FS=\":\"

3. }

4. { print $1 }

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

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

Use awk command to print usernames on the system that begin with s and their UID. Awk command should start with: awk \'BEGIN { FS=\

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site