我希望创建一个bash脚本,其中包含一个“纯”UNC (也就是说,我不想从字面上回避反斜杠)作为一个参数,例如:
./foo \\my\share\is\here然而,正如自然的那样,上面的脚本是:
我的分享
我是否可以将UNC作为一个参数来读取,并将其存储在一个变量中?
发布于 2015-01-15 16:25:30
使用单引号:
[root@xxx601 ~]# ./stack \\my\share\is\here
You Gave Me: \myshareishere
[root@xxx601 ~]# ./stack '\\my\share\is\here'
You Gave Me: \\my\share\is\herehttps://unix.stackexchange.com/questions/179289
复制相似问题