假设我有一个名为 .bash 的 bash 脚本log.sh。在这个脚本中,我想从管道读取输入,但我也想知道用于将输入管道输入到我的命令。例子:
log.sh
tail -f /var/log/httpd/error | log.sh
在shell脚本中,我想知道命令tail -f /var/log/httpd/error.
tail -f /var/log/httpd/error
linux bash pipe
bash ×1
linux ×1
pipe ×1