Question: Hi this is for linux/unix bash script. (Terminal) The following question refers to a file named cars This cars file can
Hi this is for linux/unix bash script. (Terminal)
The following question refers to a file named "cars"
This "cars" file can be created by inputting "vi cars" into the linux terminal and copying/pasting the following contents..
--------------------------------------------
plym fury 77 73 2500 chevy nova 79 60 3000 ford mustang 65 45 17000 volvo gl 78 102 9850 ford ltd 83 15 10500 Chevy nova 80 50 3500 fiat 600 65 115 450 honda accord 81 30 6000 ford thundbd 84 10 17000 toyota tercel 82 180 750 chevy impala 65 85 1550 ford bronco 83 25 9525
--------------------------------------------
Question :
2.
A) Display all the records in the cars that are newer than 1974. Use an awk command to do this, selecting those records that have a third field greater than 74.
B) Delete the cars that are more than $9000. Pipe the output of the second awk into a third awk to do this, selecting those records that have a fifth field less than or equal to 9000.
Thank You
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
