【发布时间】:2016-08-28 09:26:18
【问题描述】:
我有这样的管道:
pipeline | test $number -eq 3 && while read A B C D; do...; done
但这不起作用,因为while read 无法从管道中读取参数,因为test $number -eq 3 &&
我该如何解决?我不能使用 awk 或 sed。
【问题讨论】:
-
你想用
test完成什么?
标签: bash while-loop pipeline