What are the different methods available to run a shell
script?
Answer Posted / keerthi
3 ways
1. sh scriptname.sh
2. If the script has execute permission -
./script.sh
3. If the script has execute permission and is
stored in the directory listed in PATH ----
script.sh or .script.sh
| Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
What is a shell script in windows?
How do I run a script on mac?
How to find all the files modified in less than 3 days and save the record in a text file?
How to pass an argument to a script?
Explain how you Automate your application using Shell scripting.
Write a command sequence to find the count of each word?
i have 2 tables 4 colums table 1 respective values a1 6, a2 8,a3 9,a4 14 & table 2 respective values a1 6, a2 8, a3 9, a4 12. if compare 2 tables 3 colums values same then 4th column values 1)Qes diff >5 then (5 * diff value ) 2)Qes diff <5 the 5 3)Qes diff 5 then 5 print respective values..
one folder contains lot of students name but I want to fetch hello with every student name individually using shell script
Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.
What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?
What is shift command in shell script?
What is the use of .sh file?
how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?
What are script files?
Why is the use of shell script?