|
|
发表于 2008-3-24 00:59:07
|
显示全部楼层
Post by shmilyy;1830125
最近做一个linux的题,老弄不出来,求教一下:
定义环境变量VAR使得 echo $VAR 得到:
Is this "exercise" > difficult than it ’$’eems?
注意>前面有两个空格 - VAR="Is this "exercise" > difficult than it '$'eems?"
复制代码 可以加个export,也可不需要:- export VAR="Is this "exercise" > difficult than it '$'eems?"
复制代码- $ echo $VAR
- Is this "exercise" > difficult than it '$'eems?
复制代码
只要注意那个\"exercise\"的引号不被解释即可 |
|