Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started