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 written in?
Hi, all Scripting professional. Q. I have written script1.sh and calling script2.sh in script1.sh file using bash shell as interpreter and my log in shell also bash shell.My code like Script1 #!/bin/bash echo "My script2 call" . script2.sh Here script2.sh file run successfully but when I have changed my interpreter bash to ksh like #!/bin/ksh Error are comming script2.sh command not found. Guid me how to call other script in our main script.
How will you schedule a job that will run every month last day?(some months have 30 days,some 31 days,28,29 days)
Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.
Please give me example of " at command , contrab command " how to use
What is a shell in operating system?
What is mac default shell?
How do you find out What is your shell?
What is the difference between break and continue commands?
What is basename in shell script?
What is echo $shell?
Suppose you execute a command using exec, what will be the status of your current process in the shell?