我需要在bash脚本中将数据传递到while循环中,但它会不断修剪空白.例如:
echo " test" | while read i; do echo "$i"; done
我怎么能阻止它这样做呢?
谢谢!
bash
bash ×1