1.

Which command is used by the shell for manipulating positional parameters?(a) set(b) cut(c) case(d) pasteThis question was posed to me in an online interview.The question is from Shell Programming using Various Commands in portion Essential Shell Programming of Unix

Answer»

Right choice is (a) set

The EXPLANATION: set statement is an internal command which assigns its ARGUMENTS to POSITIONAL PARAMETERS $1, $2 and so on. For EXAMPLE, the following command will assign the value 1345 to $1 and 5678 to $2,



Discussion

No Comment Found

Related InterviewSolutions