what do u mean by $#,$* in unix programming?

Answer Posted / narendrasairam

$# - Number of argument passed

$* - Array of arguments given (or) passed arguments as an array

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you write a script to portray how set –x works?

749


What is sudo command?

734


What is the significance of $#?

774


How can you find out how long the system has been running?

678


Explain about login shell?

800


Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?

1909


How do I stop script errors?

751


How can the contents of a file inside jar be read without extracting in a shell script?

835


How to calculate the number of passed arguments?

723


What language is bash?

640


What is bash eval?

738


i have 2 tables 4 colums table 1 respective values a1 6, a2 8,a3 9,a4 14 & table 2 respective values a1 6, a2 8, a3 9, a4 12. if compare 2 tables 3 colums values same then 4th column values 1)Qes diff >5 then (5 * diff value ) 2)Qes diff <5 the 5 3)Qes diff 5 then 5 print respective values..

1951


How do I run a .sh file on mac?

884


Is shell a part of kernel?

746


What are script files?

721