How to enable the shell to know what program should be run
to interpret the script?
Answer Posted / tarun
The first line of any script shpuld specify the shell type
in which the script is run.
Syntax is
"#!/bin/xyz"
where xyz is the shell type in which the script must run.
As syntax in different shells vary so it is important to
make a global script.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Why do we write bin bash in shell scripts?
What is difference between shell and bash scripting?
Which shell is the best?
I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?
State the advantages of shell scripting?
What is path variable bash?
What does echo $0 do?
How do I run a .sh file on mac?
Explain about "s" permission bit in a file?
How do I run a script on mac?
What is option in shell script?
Suppose you execute a command using exec, what will be the status of your current process in the shell?
What is the first line of a shell script called?
Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.
Is powershell a bash?