猫文件|排序是Useless Use of Cat.
The purpose of cat is to concatenate
(or “catenate”) files. If it’s only
one file, concatenating it with
nothing at all is a waste of time, and
costs you a process.
它不应该花更长的时间.你确定你的时间是对的吗?
请发布输出:
time sort file
和
time cat file | sort
您需要运行几次命令并获得平均值.