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 :

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

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!