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
Explain about echo command?
What happens on a system call?
What is bash used for?
What is sudo command?
How does ls command work?
Can you write a script to portray how set –x works?
What language is shell scripting?
What does $$ mean in shell script?
How can we find the process name from its process id?
Is powershell a bash?
Why should we use shell scripts?
How do I run a script from command prompt?
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
What are the default permissions of a file when it is created?
write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.