Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はいくつかのものを除外しようとしていて、2 つの違いがある長い Linux コマンドを使用していました。最初のケースでは、私は使用しました
cat test.txt | sort | uniq -c | wc -l
2番目のケースでは、ソートせずに使用しました
cat test.txt | uniq -c | wc -l
行数に違いがあるのはなぜですか?誰かがこれを説明できますか?
ありがとうウペンドラ