日期:2014-05-16  浏览次数:20707 次

linux下shell编程时出现command not found
我是linux的新手,前几天装了redhat的虚拟机,没有改动任何的配置文件,也没有装什么新的软件。今天在学shell编程的时候,执行文件总是出现command not found的错误提示。以下是课件上的代码:
C/C++ code

#!/bin/sh

#print hello world in the console window

a = "hello world"

echo $a




希望大家能帮个忙。

------解决方案--------------------
C/C++ code

#!/bin/sh

#print hello world in the console window

a="hello world"

echo $a