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.
什么是只返回输入的 UNIX shell 程序?
例如
> echo "test" | $pass > test # output
您可以使用cat.
cat
使用时cat不带任何命令行参数。它只是将标准输入复制到标准输出。
cat.
还有tac执行相反的cat.
tac