1.

To extract specific columns from a file, ____ command is used.(a) tail(b) head(c) pr(d) cutThis question was posed to me in final exam.Asked question is from Filtering Commands in section Simple Filters of Unix

Answer»

Correct answer is (d) cut

The explanation: To extract SPECIFIC columns from a file, we can use cut command FOLLOWED by -c option and list of COLUMN NUMBERS, delimited by a comma. For example,



Discussion

No Comment Found

Related InterviewSolutions