3、workpc~]#sort-uA.txt applegoldironorengesilversteelsort的-r选项sort默认的排序方式是升序,如果想改成降序,就加个-r就搞定。[root@geralt-workpc~]#sortA.txt applegoldironorengesilversteelsteel[root@geralt-workpc~]#sort-rA.txt steelsteelsilverorengeirongoldapplesort的-o选项把排序结果输出到原文件[root@geralt-workpc~]#sortB.txt car