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

What is difference between shell and bash scripting?

0 Answers  


what is this line in the shell script do ?#!/bin/ksh

5 Answers  


How to check if the previous command was run successfully?

0 Answers  


How to pass an argument to a script?

0 Answers  


What are "c" and "b" permission fields of a file?

0 Answers  






What is the difference between break and continue commands?

0 Answers  


How do you know which shell I am using?

0 Answers  


What are the additional egrep symbols?

2 Answers  


What does $@ mean bash?

0 Answers  


What does chmod do?

0 Answers  


Write a script to print the first 10 elements of fibonacci series.

0 Answers  


What is a program shell?

0 Answers  


Categories