Linux Shell Scripting
Scripts are collections of commands that are stored in a file. The shell can read this file and act on the commands as if they were typed at the keyboard. The shell also provides a variety of useful programming features to make your scripts truly powerful.
Write a simple shell script
Use an editor software to write the script. The following is the simplest “Hello World” program.
#!/bin/sh # My first script echo "Hello World!"
and save the above script to the file name “myScript.sh”
We can use any name for saving the script. but here I am using “.sh” extension for my script, since the shell used here is “/bin/sh”. Also it will help us to identify the scripts from a other files and folders.
