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