1.

____ statement is used for shifting arguments left.(a) set(b) shift(c) cut(d) pasteI had been asked this question during an interview.I'm obligated to ask this question of Shell Programming using Various Commands topic in portion Essential Shell Programming of Unix

Answer»

Correct answer is (B) shift

Explanation: shift statement TRANSFERS the content of a positional parameter to its IMMEDIATE lower numbered one. This PROCESS continues as many times as shift is invoked. For example, when CALLED once, $2 becomes $1 and $3 becomes $2 and so on.



Discussion

No Comment Found

Related InterviewSolutions