1,105,578 Community Members

Meaning of some strange keys

Member Avatar
niyasc
Light Poster
40 posts since Sep 2009
Reputation Points: -3 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

This is the question appeared in our sessional exam related to shell programming

What do you mean by $?,$#,$* and $$.

Can anyone help me to answer this question?

Member Avatar
L7Sqr
Veteran Poster
1,006 posts since Feb 2011
Reputation Points: 179 [?]
Q&As Helped to Solve: 168 [?]
Skill Endorsements: 11 [?]
 
0
 

They are bash variables. Look for 'special parameters' here.

Member Avatar
niyasc
Light Poster
40 posts since Sep 2009
Reputation Points: -3 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

How can I write the answer in simple words?

Member Avatar
cfajohnson
Junior Poster
199 posts since Dec 2008
Reputation Points: 10 [?]
Q&As Helped to Solve: 24 [?]
Skill Endorsements: 0 [?]
 
0
 

They are "special parameters" available in all Bourne-type shells.

See the man page of your shell for more details.

Member Avatar
L7Sqr
Veteran Poster
1,006 posts since Feb 2011
Reputation Points: 179 [?]
Q&As Helped to Solve: 168 [?]
Skill Endorsements: 11 [?]
 
0
 

How can I write the answer in simple words?

Did you follow the link I provided? Did you look on the resulting page for the text I suggested? Some initiative on your part is expected.

adrianfrederic
Newbie Poster
2 posts since Feb 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
Banned
 
0
 

nice post

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article