Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 :

1.

a) Sort the cars by price. Pipe the output of the sed in the previous question into a sort to do this, and do not forget to sort numerically on the fifth field.

b) Finally, display the output of question 2 in uppercase. Pipe the output of the sort into a tr command.

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

Expert Oracle9i Database Administration

Authors: Sam R. Alapati

1st Edition

1590590228, 978-1590590225

More Books

Students also viewed these Databases questions