What does $# stand for?

Answers were Sorted based on User's Feedback



What does $# stand for?..

Answer / guest

No of arguments passed to script

Is This Answer Correct ?    16 Yes 1 No

What does $# stand for?..

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

What does $# stand for?..

Answer / k.s.rakeshsharma

It will give how many characters we passed... :)

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More Shell Script Interview Questions

How would you print just the 25th line in a file using smallest shell script?

4 Answers  


What is the purpose of scripting?

0 Answers  


What are the advantages of shell script?

0 Answers  


Explain about sourcing commands?

0 Answers  


Explain about shebang?

0 Answers  






What is meant by dos operating system?

0 Answers  


Explain about login shell?

0 Answers  


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.

2 Answers  


How to enable the shell to know what program should be run to interpret the script?

3 Answers  


How will you pass and access arguments to a script in linux?

0 Answers  


How to customise the other shell?

2 Answers   Quest,


Explain about non-login shell files?

0 Answers  


Categories