What is the use of script interpreter in shell scripting?
Answer Posted / tony
It's a forced attempt to try and let the script run with the Shell it was designed for. If the Shell is missing from a given system (which is unlikely if the Shell is a popular one), the script would fail. But, if the Shell is not a popular one, it will fail for a good reason, because the unpopular Shell has a high chance of not being compatible. Also, it's a method of indicating the system on which the script was written and intended for, just as a remark to any reader.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is shell a part of kernel?
What is option in shell script?
How to use arguments in a script?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
What are "c" and "b" permission fields of a file?
How to redirect both standard output and standard error to the same location?
How do I run a bin bash script?
How can the contents of a file inside jar be read without extracting in a shell script?
What are the default permissions of a file when it is created?
Explain how you Automate your application using Shell scripting.
What is k shell?
What's the difference between scripting and coding?
Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.
What does egrep mean?
What is basename in shell script?