Answered step by step
Verified Expert Solution
Question
1 Approved Answer
If I have a text file called somefile that I want to sort, I can use the sort command, but if I want to sort
If I have a text file called "somefile" that I want to sort, I can use the sort command, but if I want to sort it by it's second column in reverse numerical order (highest to lowest number) I would need to issue the command...
a. sort -nrK2 somefile
b. uniq somefile | sort -r2 -Kn
c. sort -K2 -rn somefile
d. sort -K2 somefile (the numeric order is already highest to lowest!!!)
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