Bash回显输出字符串和字符的组合

问题描述 投票:0回答:1

我正在进行评估,偶然发现以下示例问题,但是当我运行这行代码时,没有任何选择吗?哪个是正确的答案?

enter image description here

linux bash echo
1个回答
0
投票

.是PHP的字符串连接运算符。在bash中,您可以只执行echo Tomorrow will be January ${num}rd

两个版本的代码输出Tomorrow will be January 3rd

© www.soinside.com 2019 - 2024. All rights reserved.