【发布时间】:2011-03-14 02:19:55
【问题描述】:
这是我的代码:
num=2
echo "this is the $numnd"
它显示:
this is the
我能做什么,
谢谢
【问题讨论】:
这是我的代码:
num=2
echo "this is the $numnd"
它显示:
this is the
我能做什么,
谢谢
【问题讨论】:
使用大括号,如下所示:
num=2
echo "this is the ${num}nd"
输出:
this is the 2nd
【讨论】:
你可以使用:
echo "this is the ${num}nd"
【讨论】: