Exercise 1. Write a shell script which prints "I will learn Shell Scripting!" on the terminal.
Program: Here we will use 'echo' to print the content we want.
Output: It will display the line on out terminal after we run the script.
To run the script we can use two methods
1. by - sh <script_name>
2. by - ./<script_name> Here in this method we have to give execute (x) permission to the file so that we can execute it otherwise you will be not able to run the script.
No comments:
Post a Comment