IFS设置为换行

设置方式:

IFS='
'

验证:

lishixin@lishixin:~/桌面$ IFS='
> '
lishixin@lishixin:~/桌面$ echo "shshhshshshs
> shjahsjha
> shajshahsj
> sahjsha"
shshhshshshs
shjahsjha
shajshahsj
sahjsha
lishixin@lishixin:~/桌面$ 
Logo

更多推荐