The Gateway to Computer Science Excellence
0 votes
477 views

Match the following with reference to Unix shell scripts :

LIST-I LIST-II
a. $?  i. File name of the current script 
b. $#  ii. List of arguments
c. $0  iii. The number of arguments 
d. $*  iv. Exit status of last command 
  1. a-iii; b-ii; c-i; d-iv
  2. a-ii; b-iii; c-i; d-iv
  3. a-iv; b-iii; c-i; d-ii
  4. a-i; b-iii; c-i; d-iv
in Others by Boss (30.2k points)
recategorized by | 477 views

1 Answer

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

by Boss (41k points)
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,647 questions
56,492 answers
195,439 comments
100,710 users