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.
此查询将标准输出和标准错误保存到同一文件(输出):
找到 /home -not -group root > ~/out 2>&1
如何按字母顺序组合两个流的内容并保存到文件中?
谢谢
将它们传递给sort.
sort
find /home -not -group root > >(sort > ~/out) 2>&1