How to use the read command in Bash?

前端 未结 8 1760
执念已碎
执念已碎 2020-12-07 23:54

When I try to use the read command in Bash like this:

echo hello | read str
echo $str

Nothing echoed, while I think str<

8条回答
提交回复
热议问题