Starting with the shell script.


Shell script file contains text in ASCII characters.YOu can use any editor like
vi, vim, gedit,emacs,pico which are present in linux environment.
 This text tell you major steps in creating and executing simple shell
script.
1. writing shell script on editor.
   Open the terminal and write the script(given below for hello world)
   ———————–
   #!/bin/csh
  
    echo “Hello world”;
   ————————-
2. set the access permissions.
   Access permission of files can be set using command chmod.
   chmod 775 filename

3. execute with command

     ./filename

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s