Shell Scripting, oooh...its easy

Filed under

"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

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

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.