Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

More Books

Students also viewed these Databases questions

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago