How to enable the shell to know what program should be run
to interpret the script?

Answers were Sorted based on User's Feedback



How to enable the shell to know what program should be run to interpret the script?..

Answer / 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

How to enable the shell to know what program should be run to interpret the script?..

Answer / prav gir

$SHELL

Is This Answer Correct ?    1 Yes 0 No

How to enable the shell to know what program should be run to interpret the script?..

Answer / guest

by Using command ksh/csh

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Shell Script Interview Questions

What are scripts in psychology?

0 Answers  


What are the advantages of bash over all other shells?

1 Answers  


What is a boot block?

0 Answers  


There is a record with fields namely name,roll no.,salary,grade etc.Now,write a script to create a file with multiple records have same combination of fields but with unique roll numbers.The script should work for different names in the input file.

1 Answers   Wipro,


shell script for reverse the string

0 Answers  






What is the use of "$#" in shell scripting?

0 Answers  


how to search for vowels a,e,i,o,u appearing in the same sequence in a file

4 Answers   Amazon,


What is shell application?

0 Answers  


write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?

0 Answers   Wells Fargo,


How do I run a .sh file?

0 Answers  


How to print the first array element?

0 Answers  


Why is shell scripting important?

0 Answers  


Categories