我设置了一个带有某个值的变量,当我用echo
命令显示它时,它正确地显示了值但是当我在命令中使用这个变量时它不起作用。有人可以帮忙吗?
echo $hiteshobject
ameras0009.abc.com:/D 'ameras0009.abc.com [/D]'
26:/home/a-hkat # omnidb -winfs "${hiteshobject}"
No objects were found.
26:/home/a-hkat # echo "${hiteshobject}"
ameras0009.abc.com:/D 'ameras0009.abc.com [/D]'
26:/home/a-hkat # omnidb -winfs ameras0009.abc.com:/D 'ameras0009.abc.com [/D]'
SessionID Started Duration Object Status Size [KB] NumberOfErr
=============================================================================================
2017/02/20-379 03:00:28 08:14:24 Running 3769280 0
2017/02/20-221 03:00:28 00:13:25 Completed 3769280 0
2017/02/19-122 03:00:31 30:07:24 Failed 0 0
本文介绍如何使用数组。实际上我是bash脚本的新手,所以请帮助我如何在我的情况下使用数组。
提前致谢。