Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Students also viewed these Databases questions

Question

5. If yes, then why?

Answered: 1 week ago

Question

3. What changes should I be making?

Answered: 1 week ago