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
What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?
What is shell variable?
c program to display the information of given file similar to givan by the unix or linux command ls -l
How will you emulate wc –l using awk?
What is mac default shell?
Write the syntax for "if" conditionals in linux?
What is bash coding?
Write down the syntax for all the loops in shell scripting.
How to get the 3rd element/column from each line from a file?
Where are cowrie shells found?
Explain about the exit command?
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 is a shell script? Can you name some of its advantages?
What is wc in shell script?
I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?