Example
Below is an example of a simple shell script that prints the date, and then sleeps 20 seconds.
Start a text editor:
$ nanoEnter the following text, and save as ‘simple.sh’:
#!/bin/shdatesleep 20Make the script executable:
$ chmod a+x simple.shRun the command at the shell prompt:
$ ./simple.sh