1.

The >> symbol is used to overwrite the existing file if it exists.(a) True(b) FalseThe question was asked during an interview for a job.Question is taken from Redirection and Pipes topic in chapter The Shell of Unix

Answer» CORRECT choice is (b) False

Easy explanation: The SHELL provides the >> symbol (right chevron used twice) to append to an EXISTING file. For example,

//Do a word count PROGRAM on sample.txt and append the output to NEWFILE as shown below.

$ wcsample.txt >> newfile


Discussion

No Comment Found

Related InterviewSolutions