Answered step by step
Verified Expert Solution
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started