Monday, July 9, 2012

How to create script in Unix

First of all we need Unix environment to create the script.
  • 1. vi MyFirstScript.sh
  • 2. type echo "Hello World"
  • 3. exit and save :wq!
  • 4. change mode the file as a executable file => chmod 775 MyFirstScript.sh (I will tell about 775 later)
  • 5. now the script can be execute, type ./MyFirstScript.sh
  • 6. the output Hello World
tq...

No comments:

Post a Comment