wats the she bang statment with syntax?
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / sailabala sahoo
#!/usr/bin/sh
see bang line find the path of the interpreter.
| Is This Answer Correct ? | 0 Yes | 0 No |
What language is bash?
What is in a script?
How do I stop script errors?
How will you pass and access arguments to a script in linux?
What is the way to do multilevel if-else's in shell scripting?
What are the different methods available to run a shell script?
Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.
Why are shell scripts used?
What are the types of script?
how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com
How u convert string "hi pravin how are you?" to "Hi Pravin How Are You?"
How do you debug a script?