Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management Systems Designing And Building Business Applications

Authors: Gerald V. Post

1st Edition

0072898933, 978-0072898934

More Books

Students also viewed these Databases questions

Question

How wide are Salary Structure Ranges?

Answered: 1 week ago