Google News
logo
Unix - Quiz(MCQ)
To extract specific columns from a file ____ command is used.
A)
pr
B)
cut
C)
tail
D)
head

Correct Answer :   cut


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,

$ cut  -c  6-22,24-32  emp.lst​

Advertisement