what do u mean by $#,$* in unix programming?
Answers were Sorted based on User's Feedback
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 |
Answer / narendrasairam
$# - Number of argument passed
$* - Array of arguments given (or) passed arguments as an array
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / anita lohia
$# The number of command line argument
$* All the arguments on the command line
| Is This Answer Correct ? | 6 Yes | 0 No |
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 |
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 |
How to get the 3rd element/column from each line from a file?
How to handle the delimiter unit seperator in Unix
Where are cowrie shells found?
How to get the first line from a file using just the terminal?
What is shell terminal?
write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?
Write a shell script in Linux to shift all characters in a file forward by five characters. (Thus “a” becomes “f’”).
2 Answers Ignou, Tripura Info,
What is the meaning of $1 in shell script?
What are the zombie processes?
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 ?
How do scripts work?
how do you write sql queries using shell script for eg:- we have databae table like EMPNO,ENAME,SAL,DEPTNO columns in EMP table how you display EMPNO,SAL FIELDS from emp in SHELL SCRIPT please explain with an example