红联Linux门户
Linux帮助

新手:关于Linux echo小问题

发布时间:2014-11-24 21:34:27来源:红联作者:t12345pk
创建文件 test01.sh 如下
#!/bin/bash
echo "this is 01"
`sh test02.sh`

创建文件test02.sh如下
#!/bin/bash
echo "this is 02"

在终端输入 sh test01.sh
显示:
this is 01
./test02.sh: line 3: this: command not found

可是我想要得到的结果是
this is 01
this is 02
请问大神该如何解决?
文章评论

共有 2 条评论

  1. t12345pk 于 2014-11-26 16:35:38发表:

    好冷清。
    120+的查看 , 都没大神能解释下吗?

  2. t12345pk 于 2014-11-25 08:56:53发表:

    [i=s] 本帖最后由 t12345pk 于 2014-11-25 09:14 编辑 [/i]

    @qdfc
    @Growth兆
    @各路LINUX牛人
    对于这个基础性问题怎么看?