Question: I need linux commands that can do the following: *HINT: Use awk cut, tr, wc, sed and pipelines where applicable! 1) Given a cars_file.txt field

I need linux commands that can do the following: *HINT: Use awk cut, tr, wc, sed and pipelines where applicable! 1) Given a cars_file.txt field that contains 6 fields: make, model, year, mileage, price, popularity. Show the commands used to output the records of cars that: a) Are less than $5,000. b) Are letween $500 and $3,000. c) Were made in 1955 and have more than 150,000 miles. d) Were made in the 1980s. e) Display only the make and price fields for all the cars. f) Display only the prices for the Toyota Tacomas g) Display the number of cars per make. h) Display the average, min, and max price of all the records. Cars file is given like this| make, model, year, mileage, price, popularity toyota corolla 75 66 4400 63 honda accrod 55 321 450 12 etc etc Now from the Roman file, show the commands used to output a) Records whose 6th field is "Warrior" b) Records that contain "king" and whose second field is 10 c) Records whose third field is less than 500, and whose 5th field is between 'a' and 't' d) Records where second field > third field e) every 5th record Roman file is given like this: nanidesuka 33 15000 0.53 K hono sugoi 18 3859 0.23 g hoto etc etc

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!