Asked by hongbinzhang711 in Bourne-Again Shell (bash), Shell Scripting
Tags: shell, sort, script, unix, file
I have a file with content: AAA 10 AAA 1 AAA 2 CCC 1 CC C 0 BBB 20 BBB 1 how can I use Unix sort to sort this file to sort field 1 as text and field 2 as numeric?
At Experts Exchange, members can ask their questions to thousands of technology professionals,
also known as Experts. Experts compete and collaborate to answer those questions by leaving
comments like this one.
At Experts Exchange, members can ask their questions to thousands of technology professionals,
also known as Experts. Experts compete and collaborate to answer those questions by leaving
comments like this one.
At Experts Exchange, members can ask their questions to thousands of technology professionals,
also known as Experts. Experts compete and collaborate to answer those questions by leaving
comments like this one.
View this solution now by starting your
7-day free trial.
Setting up your free trial is quick, easy, and secure. We will return you to this solution,
unlocked, when you're done.