first going to crate a folder in home directory
folder name shell
then go to that folder by command line
Execute Code
Note
both are different methods to execute shell script
You can use "sh" or "./" for execute shell script
here "1" is shellscript file name
chmod 755 used to give file permissions
Code:print
Output:
Note
what ever you type into echo willbe the output also it create a newline
Code:read
Output:
Note
to print the variable use "$"
ex: $name
Code:Variales & Operations
Output:
Note
do the operations within "(())"
No comments:
Post a Comment