Question: HELP!!! LINUX/UNIX: Awk/SED Commands and Programs. Solutions, please. Thanks! Task: The /etc/passwd file contains a listing of all the users on the UNIX system along
HELP!!!
LINUX/UNIX: Awk/SED Commands and Programs. Solutions, please. Thanks!
Task: The /etc/passwd file contains a listing of all the users on the UNIX system along with other information about the accounts. Use the /etc/passwd file to do the following tasks.
1. Display the full names (real names) of all the accounts whose username begins with b. This information is in field 5 of the file and may contain other user data, as well.
2. Write a gawk program that numbers each line in a file and sends its output to standard output.
3. Write a gawk program that displays the number of characters in the first field followed by the first field and sends its output to standard output.
4. Use gawk to determine how many lines in the /etc/services contain the string Mail. Verify your answer using grep.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
