[prev] [index] [next]

Shell Scripts

Consider a file called "hello" containing

#!/bin/sh

echo Hello, World

How to execute it?

$ sh hello           # execute the script
or
$ chmod +x hello     # make the file executable
$ ./hello            # execute the script