Warning message

  • This translation is outdated. For the most up-to-date information, please refer to the English version.
  • This translation is outdated. For the most up-to-date information, please refer to the English version.

2 番目の単語/アルファベットを変更すると sort コマンドの出力結果が異なる理由

Solution Verified - Updated -

Issue

  • root として以下を実行します。
[root@] ~$ cat /tmp/test
X m
XEL m
XOM m

[root@] ~$ sort /tmp/test
X m
XEL m
XOM m

[root@ ~]# sort /tmp/test
XEL m
X m
XOM m
  • m を e に変更すると以下のようになります。
[root@ ~]# sort /tmp/test
X e
XEL e
XOM e

Environment

  • Red Hat Enterprise Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.