1.

Any command using standard input can take the input from here document.(a) True(b) FalseI had been asked this question in an interview for internship.My question comes from Shell Programming using Various Commands in section Essential Shell Programming of Unix

Answer»

Correct option is (a) True

Easiest explanation: The shell USES >> SYMBOL to read data from the same file CONTAINING the script. This is referred to as a here DOCUMENT. It ALLOWS any command (which uses standard input) to take input from it.



Discussion

No Comment Found

Related InterviewSolutions