Translated message

A translation of this page exists in English.

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content