$ ls -l helloworld
-rwxr-xr-x 1 lungswu lungswu 29 2010-03-02 11:42 helloworld
$
$ ./helloworld
Hello World
$
其方式....
$ cat > helloworld
#!/bin/sh
echo "Hello World"
$
$ chmod a+x helloworld
$ ./helloworld
Hello World
$
$ ls -l helloworld
-rwxr-xr-x 1 lungswu lungswu 29 2010-03-02 11:47 helloworld
$
$ file helloworld
helloworld: POSIX shell script text executable
$
$
(Hello World - code size系列 完)
好賊啊 XD
ReplyDelete