What does $# stand for?
Answers were Sorted based on User's Feedback
Answer / seshadri sethi
# will return the number of parameters that are passed as
the command-line arguments.
Is This Answer Correct ? | 11 Yes | 1 No |
It will give how many characters we passed... :)
Is This Answer Correct ? | 2 Yes | 1 No |
How would you print just the 25th line in a file using smallest shell script?
What is the purpose of scripting?
What are the advantages of shell script?
Explain about sourcing commands?
Explain about shebang?
What is meant by dos operating system?
Explain about login shell?
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 to enable the shell to know what program should be run to interpret the script?
How will you pass and access arguments to a script in linux?
How to customise the other shell?
Explain about non-login shell files?