【问题标题】:I want to input variable like string bash我想输入像字符串bash这样的变量
【发布时间】:2021-06-05 13:22:26
【问题描述】:

我想要输入文件,比如 -

a="Hello"
echo "$a ${foobar}"

我得到的输出是 -

Hello

但我想要这样的输出 -

Hello ${foobar}

我怎样才能完成这个是 bash 脚本?

【问题讨论】:

    标签: linux bash unix bash-completion


    【解决方案1】:
    a="Hello"
    echo "$a \${foobar}"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-10-25
      • 2021-03-29
      • 1970-01-01
      • 1970-01-01
      • 2012-01-16
      • 1970-01-01
      • 2012-04-01
      • 1970-01-01
      相关资源
      最近更新 更多