Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Purpose of This Labwork: The purpose of this labwork is to practice on awk scripts. In this lab, you are expected to process an input

Purpose of This Labwork:
The purpose of this labwork is to practice on awk scripts.
In this lab, you are expected to process an input file(std.txt) with the following fields: username, name, last name, date, time. Date format is day/month/year. Username starts with std and ins for students and instructors respectively.
You will find how many times students and instructors logged into the system in 2017.
You will display the following output:
Students: 3
Instructors: 3
Recall: You should add the line at beginning of the awk file "#!/bin/awk -f".
When you want to run your awk script, your command should be "awk -f your.awk std.txt"
image text in transcribed

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

Students also viewed these Databases questions