wats the she bang statment with syntax?

Answers were Sorted based on User's Feedback



wats the she bang statment with syntax?..

Answer / shimpi

a shebang (also called a hashbang, hashpling, or pound
bang) refers to the characters "#!. The shebang is looked
for and used when a script is invoked directly.
Because the "#" character is often used as the comment
marker in scripting languages, the contents of the shebang
line will be automatically ignored by the interpreter
itself; the shebang line only exists to specify the correct
interpreter to be used.

Is This Answer Correct ?    4 Yes 1 No

wats the she bang statment with syntax?..

Answer / priya

shebang is also called as hashbang.This basically used for
interpretation.This should be the 1st line of any shell
script which indicate the script to run in specified shell.
For ex. If the 1st line of a shell script is #!/bin/ksh
then the program has to run under korn shell.If you do not
specified any shebang then it will run under default shell.

Is This Answer Correct ?    3 Yes 1 No

wats the she bang statment with syntax?..

Answer / sailabala sahoo

#!/usr/bin/sh
see bang line find the path of the interpreter.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Shell Script Interview Questions

what does "kill -9" and "kill -1" do

2 Answers   Amazon,


How to print some text on to the screen?

2 Answers  


What is the use of echo in shell script?

0 Answers  


wats the deinitions for shell utility and filter?

0 Answers  


c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again

2 Answers  






What are the disadvantages of shell scripting?

0 Answers  


What is a beat in a script?

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  


What does debug script mean?

0 Answers  


Is SSO and SSL support BOXI?

2 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  


‎What is a shell? · ‎Types of shell · ‎what is shell scripting?

0 Answers  


Categories