bash - 通过 unix shell 管道

标签 bash shell

什么是只返回输入的 UNIX shell 程序?

例如

> echo "test" | $pass
> test # output

最佳答案

你可以使用cat

当使用 cat 时没有任何命令行参数。它只是将标准输入复制到标准输出。

关于bash - 通过 unix shell 管道,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10528441/

相关文章:

bash - 使用$(func)调用有问题的函数时,Bash脚本不会在第一次 “exit”调用时退出

Bash 脚本和文件名中的空格

mysql - mysql 数据库连接过多

linux - bash 字符串插值返回空字符串

bash - 从此处开始的 SSH session Doc 未正确退出

Python:迭代 shell 命令结果的好方法

android shell命令获取结果

unix - awk 替换单引号

bash - 使用 bash 生成随机 IP 问题

bash - 如何创建多行 curl 字符串,变量包含在单引号和双引号中?