红联Linux门户
Linux帮助

如何执行单引号和文件中的linux命令

发布时间:2009-07-11 21:16:37来源:红联作者:yeman039
我用如下命令:
$echo the time is: 'date'
the time is 'date'
为什么不输出时间,我的红旗6的。

另外:
$echo who | wc -l > test
$chmod +x test
test
结果提示错误1
文章评论

共有 4 条评论

  1. hantu 于 2009-07-12 00:34:42发表:

    是用反引号而不是单引号, 沙发的 hstking 说的那个键

  2. checked 于 2009-07-12 00:01:12发表:

    坐着听课

  3. yeman039 于 2009-07-11 22:48:40发表:

    谢谢啊

  4. hstking 于 2009-07-11 22:22:29发表:

    那个不是单引号,是反撇,是左上角esc下面的那个键。