Question: LINUX PLEASE!!! 1 . This is a sed question. You have an existing fileA with many lines of text. Using only the sed commands we've

LINUX PLEASE!!!
1. This is a sed question.
You have an existing fileA with many lines of text.
Using only the sed commands we've covered in class, print fileA with a line of *** inserted between each line of fileA.
Example
Original fileA
Printed fileA
one
two
three
four
one
***
two
***
three
***
four
2. Suppose you want to shorten the script by removing the last line of the script (the line that says /^$/d).
But you still want to get the same correct output.
a. Show the shorter script (copy the first 4 lines of the script above), and make any change as needed
b. Then show how you would run the script so that you still get the same correct output as the longer script above.
To get full credit, you should only run one sed command, and not use any other filter.
3. This an awk question.
Start with a long listing of your current directory, print the number of regular files, directories, and links in the directory.
Your output should be similar to: "20 regular files, 0 directories, 2 links"
You can either show an awk command line or an awk script.
4. This is an awk question.
In the /etc/passwd files are lines of account information for all accounts on the Linux system. On voyager, the accounts can be a student account, staff account, or system account.
As you know from Question 8 of Lab 4, lines of student accounts contain the 'student' string, and lines of staff accounts contain the 'staff' string. But there is no common text strings for system accounts.
Write an awk script that prints the user id (field 1) of all system accounts on voyager.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!