Question
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
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