Shell Scripting, oooh...its easy

Filed under
HowTos

"Shell scripting is nothing but a group of commands put together and executed one after another in a sequential way. Let's start by mentioning the steps to write and execute a shell script."

Step 1: touch a file
e.g.: touch Firstshellscript.sh

Step 2: Open the file using the command vi or pico
e.g.: vi Firstshellscript.sh

Step 3: All shell script should begin with "#!/bin/bash ". This line is called the Shebang and this line looks like a comment but its not. It's a message which talks about the interpreter to be used for this script.

Full Story.