1
我有这样的代码为什么我的循环变量在1次迭代后没有活动?
for p in "abra/cadabra reach/out"
do
r="$HOME/x/$p"
echo $r
done
但它只能产生这样的:
/Users/terrencemonroebrannon/x/abra/cadabra reach/out
不
/Users/terrencemonroebrannon/x/abra/cadabra /Users/terrencemonroebrannon/x/reach/out
为我所期望的。
还要注意的是,如果你有在路径名称中使用空格自己,那些*会*需要请分别引用:“在路径一”,“路径二”中输入 – 2012-04-19 15:29:37