1.

Which symbol is used for evaluation of variables?(a) $(b) &(c) =(d) @The question was asked in an interview for job.My question is taken from Command Substitution and Shell Variables topic in portion The Shell of Unix

Answer» RIGHT CHOICE is (a) $

The explanation: The shell supports variables that are useful both in the command line and shell scripts. These variables are called shell variables like TERM and SHELL.A variable assignment is of the form variable=value(no spaces around =), but its evaluation REQUIRES the $ as a prefix to the variable name. For EXAMPLE,


Discussion

No Comment Found

Related InterviewSolutions