Question: Use UNIX command sort, uniq, cut, cat, wc, head or tail to answer the following question. Sort the lines of names.txt by last name and

Use UNIX command sort, uniq, cut, cat, wc, head or tail to answer the following question.

Sort the lines of names.txt by last name and then by rst name, in alphabetical order. That is, use last name as the primary sort key, and rst name as the secondary sort key, to sort the lines in lexicographically increasing order. Your command line should print the sorted lines to stdout.

names.txt

Mike Millon 2 50000

Allen Border 1 2000

Gram Swan 8 150000

Steve Border 3 6000

James Anderson 1 3000

Micheal Scott 4 6000

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!