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 is the use of echo in shell script?

0 Answers  


How to change our default shell?

5 Answers  


How will you find the 99th line of a file using only tail and head command?

0 Answers  


Is shell scripting a programming language?

0 Answers  


RAM one table colums a1,a2,a3,a4 respective values 2,4,7,8 KRISH one table colums a1,a2,a3,a4 respective values 3,4,6,9 IN RAM & KRISH a4 column if comparing values RAM A4 - KRISH A4 ( 8-9 =1 THEN print 5 or (RAM) a4 value 10 KRISH a4 values 2 then 10 -2 =8 print 5*8=40 or diff 5 print same

1 Answers   Tech Mahindra,






Please anyone suggest atleast 2 good training institutes in Hyderabad, INDIA where i can learn unix shell scripting.

1 Answers  


What are the 3 standard streams in linux?

0 Answers  


what are bootlevel in linux?which level is booting by default.

5 Answers   Symphony,


What does the sh command do?

0 Answers  


Can we run shell script in windows?

0 Answers  


What is bash eval?

0 Answers  


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.

0 Answers  


Categories