edited by
1,585 views
0 votes
0 votes

Match the following with reference to Unix shell scripts $:$

$\begin{array}{clcl}  & \textbf{List – I} & & \textbf{List – II}  \\ \text{a.} & \text{\$?} & \text{i.} & \text{File name of the current script} \\ \text{b.} & \text{\$# } & \text{ii.} & \text{List of arguments} \\ \text{c.} & \text{\$0} & \text{iii.} & \text{The number of arguments} \\ \text{d.} & \text{\$*} & \text{iv.} & \text{Exit status of last command} \\ \end{array}$

$\textbf{Codes :}$

  1. $\text{a-iii, b-ii, c-i, d-iv}$
  2. $\text{a-ii, b-iii, c-i, d-iv}$
  3. $\text{a-iv, b-iii, c-i, d-ii}$
  4. $\text{a-i, b-iii, c-i, d-iv}$
edited by

1 Answer

0 votes
0 votes
LIST-I LIST-II
a. $?  iv. Exit status of last command  
b. $#  iii. The number of arguments 
c. $0  i. File name of the current script
d. $*  ii. List of arguments

Hence,option(C) IV III I II.

Reference:-Unix - Special Variables

Answer:

Related questions

0 votes
0 votes
1 answer
1
1 votes
1 votes
2 answers
4
makhdoom ghaya asked Jul 11, 2016
3,431 views
The output generated by the LINUX command :$ seq 1 2 10will be 1 2 101 2 3 4 5 6 7 8 9 101 3 5 7 91 5 10