linux脚本中为什么有时候用{}有时候用()——${1}⼀$(1),有什么区别?

2025-03-27 07:28:19
推荐回答(1个)
回答1:

${1}是变量1
$(1)是执行命令1
# echo $(1)
1: command not found