what is the meaning of First line of shell script ,what is
meaning of #! pleas explain brifly
Answers were Sorted based on User's Feedback
Answer / alpkumar
#! indicates from where the path of the interpretor should
be considered and also directs that the contents of the
file which will be following will be executed under the
guidelines of this interpretor being used.
| Is This Answer Correct ? | 30 Yes | 1 No |
Answer / shivani
It tells u that which is the shell whose interpreter would
come into action for the execution of that particular
script.
| Is This Answer Correct ? | 15 Yes | 3 No |
Answer / r r mishra
#!/bin/sh. which dictates that the following program is a
shell script,
| Is This Answer Correct ? | 21 Yes | 13 No |
What shell is bin sh?
What is the crontab?
What are the different methods available to run a shell script?
Explore about environment variables?
In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?
What is the use of "test" command?
What are the default permissions of a file when it is created?
How do I run a script from command prompt?
Write a command sequence to find the count of each word?
How to declare functions in unix shell script?
How will you find the 99th line of a file using only tail and head command?
What are the different types of commonly used shells on a typical linux system?