Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 1 cd to my home directory. Will the following command generate a list of the group names only from the file called sortfile and

QUESTION 1

cd to my home directory. Will the following command generate a list of the group names only from the file called sortfile and display the list to the terminal? awk -F! '{ print $3 }' sortfile The group names are located in column three of the file.

Yes or No

QUESTION 2

cd to my home directory. Commands such as awk, sort, grep and more, can be used as a filter. These commands are considered filters when used to the right of a pipe. Using awk and the sort command, construct a command string that will reference the file called sortfile and output ONLY the user names in reverse sorted order. The user names are those found in column 1. Will the following command achieve the above result? awk -F! '{ print $1 } ' sortfile | sort -r

Yes or No

QUESTION 3

cd to the ~coolineeh/test directory. Using awk, generate an output that contains the file entry names and file type/permissions only of the file entries within the directory. Separate the file entry names and file type/permissions columns by a colon (:). The output should resemble the following: filename : permissions Replace the ## below to create a sed command string that will generate the output requested above.

ls ## | awk '{ print $9 ":" $1 }'

1.-A

2.-F

3.-l

4.-r

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_2

Step: 3

blur-text-image_3

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 Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

More Books

Students also viewed these Databases questions

Question

Find the number of primitive 18th roots of unity in GF(19).

Answered: 1 week ago