下面是我的代码片段,我正在尝试输出一个文件名以在两端都有双引号。
#!/usr/bin/ksh
.......
##the value is: Site Information_2013-07-05-00-01-26.CSV
RemoteFile=$(grep "$File" "$TempLog")
##then Im trying to redirect it to a file so that it will have double quotes
echo "\"$RemoteFile\"" > cmd
##I'm expecting below output.
"Site Information_2013-07-05-00-01-26.CSV"
##instead, the double quote is missing at the end, can someone point out what I'm doing wrong
"Site Information_2013-07-05-00-01-26.CSV
谢谢。