Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

b) Consider the following file called gasoline.txt: Station,Regular,Premium Exxon,2.39,2.50 Mobile,2.19,2.25 Shell,3.19,3.29 CircleK,3.01,3.15 QT,2.11,2.15 Each field in this file is separated by a comma and each

b) Consider the following file called gasoline.txt:

Station,Regular,Premium

Exxon,2.39,2.50

Mobile,2.19,2.25

Shell,3.19,3.29

CircleK,3.01,3.15

QT,2.11,2.15

Each field in this file is separated by a comma and each record is separated by a newline character. For this file, you will write a one-line gawk command-line to filter records where the premium price is less than $3 and the premium price difference between regular and premium is less than 10 cents. Specifically, you will print out only the station name and the price for premium. Add a $ in front of the price. You may write the gawk command-line in the space provided below

Answer:

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

Recommended Textbook for

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions

Question

Give the phase and the missing properties of P, T, v and x.

Answered: 1 week ago

Question

How does teacher immediacy affect learning?

Answered: 1 week ago