我有以下代码:
while ... echo -n "some text" done | while read; do echo "$REPLY" >> file done
但echo只在没有"-n"标志的情况下使用.看起来像使用-n时,输出不会被下一个while循环刷新/读取
即使未遵循EOL,我怎样才能确保读取"某些文本"?
linux bash
bash ×1
linux ×1