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

Answers were Sorted based on User's Feedback



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

Answer / vipul dalwala

$# - number of command line arguments or positional
parameters

$* - All of the positional parameters, seen as a single word

Is This Answer Correct ?    18 Yes 2 No

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

Answer / narendrasairam

$# - Number of argument passed

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

Is This Answer Correct ?    9 Yes 0 No

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

Answer / anita lohia

$# The number of command line argument
$* All the arguments on the command line

Is This Answer Correct ?    6 Yes 0 No

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

Answer / siva prasad

$#- total no of positional parameters excluding the program
name
$*- all the arguments excluding the program name

Is This Answer Correct ?    3 Yes 0 No

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

Answer / satyabrata

$# it contains the no of positional parameters
$* it contains all positional parameters as a single string

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More Shell Script Interview Questions

Can shell script run on windows?

0 Answers  


What is INODE?

2 Answers  


What is the difference between bash and shell?

0 Answers  


how to create purchase order

2 Answers  


What is difference between bash and shell?

0 Answers  






Which is better perl or shell scripting?

0 Answers  


What does the sh command do?

0 Answers  


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

0 Answers  


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

0 Answers  


What is the conditional statement in shell scripting?

0 Answers  


How to print the first array element?

0 Answers  


how did u debugging in unix/ linux platform ??( project Related)

2 Answers   Symphony,


Categories