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.
我在 .zshrc 中有以下内容
setopt multios
我正在尝试在 Zsh 中启用上述选项来执行以下操作
ls -1 | tee file.txt | less
我运行以下命令失败
ls -1 | file.txt | less
以及以下
ls -1, file.txt, less
如何在没有命令 tee 的情况下在 Zsh 中使用多个输出?
第二个是错误的语法,应该是
ls -1 > file.txt | less