我有一个程序isig,它显示18行数据,想将其与文本文件info1合并.txt其中还有18行附加数据到表格视图中,并以1秒的间隔观看。
我显示表格的命令是:
pr -m -t <(isig 4001+18) info1.txt
如果我添加手表:
watch -n 1 'pr -m -t <(isig 4001+18) info1.txt'
我得到:
sh: 1: Syntax error: "(" unexpected
有没有办法在bash命令行中实现这一点
进程替换(<()
(是一个Bash扩展,在标准shell中不可用。 获取watch
以在 Bash 中运行命令:
watch -n 1 'bash -c "pr -m -t <(isig 4001+18) info1.txt"'