1.

Which option is used with pr command to display output along with line numbers?(a) -d(b) -n(c) -o n(d) -tI have been asked this question at a job interview.This intriguing question originated from Filtering Commands topic in division Simple Filters of Unix

Answer»

Right option is (b) -n

Easiest EXPLANATION: pr command offers MANY OPTIONS which are USED for producing the output in just the format we need. For example,

-ddouble spaces input

-nnumbers lines, helps in debugging code

-o noffsets lines by n spaces, INCREASES left margin of the page



Discussion

No Comment Found

Related InterviewSolutions