Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part II: Please study the handouts for week 8 and then answer the following questions: 1) Based on the script awkcZ. in Example 7 of

image text in transcribed

Part II: Please study the handouts for week 8 and then answer the following questions: 1) Based on the script awkcZ. in Example 7 of the handouts, please write an awk script to display the first four records in "logipfile." Please test your script to make sure the script displays the following information: | ics311sp 210125 pts/7 ics311sp210123 pts/5 ics311sp 210125 pts/5 ics311sp2191.16 pts/2 47.32.60.84 73.62.247.106 47.32.60.84 68.47.88.136 Fri Feb 19 21:52 - 00:29 Fri Feb 19 21:08 - 22:30 Fri Feb 19 20:03 - 20:03 Fri Feb 19 11:35 - 16:34 (02:36) (01:21) (00:00) (04:59) Please provide the screenshot of your script with its output below: 2) How to modify "awkc7" so that we can display the last three records in "loginfile?" (you can assume that we have only 7 records in "loginfile). Please test your script so that it displays the following information: ics311sp210125 pts/5 ics 311sp 210116 pts/2 ics311sp 210116 pts/2 47.32.60.84 68.47.88.136 68.47.88.136 Fri Feb 19 20:03 - 20:03 Fri Feb 19 11:35 - 16:34 Fri Feb 19 11:21 - 11:26 (00:00) (04:59) (00:04) Please provide the screenshot of your script with its output below: 3) Based on the example awkc7" introduced in the handouts, please write an awk script to display the records from the second to fourth in "loginfile." Please test your script to make sure the script displays the following information: iss3115R219.123 pts/5 iss3115R210125 pts/5 iss3115R219116 pts/2 73.62.247.106 47.32.60.84 68.47.88.136 Fri Feb 19 21:08 - 22:30 Fri Feb 19 20:03 - 20:03 Fri Feb 19 11:35 - 16:34 (01:21) (00:00) (04:59) Please provide the screenshot of your script with its output below

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

Sams Teach Yourself Beginning Databases In 24 Hours

Authors: Ryan Stephens, Ron Plew

1st Edition

067232492X, 978-0672324925

More Books

Students also viewed these Databases questions

Question

What is empathy? Describe how it is related to prejudice.

Answered: 1 week ago

Question

Summarise the scope of HRM and the key HRM functions

Answered: 1 week ago