1.

Every time shift command is used, the leftmost variable is lost.(a) True(b) FalseI got this question in an interview for job.I need to ask this question from Shell Programming using Various Commands topic in chapter Essential Shell Programming of Unix

Answer»

Correct answer is (a) True

For explanation: shift statement is USED for shifting the positional parameters to its IMMEDIATE lower ones. Every time we use shift, the LEFTMOST variable GETS lost; s it should be saved in a variable before using shift.



Discussion

No Comment Found

Related InterviewSolutions