Vidyalelo
Computer Science · Q8

UNIX

Engineering and GATE · Computer Science · question 8

Q8

Which command is used to extract specific columns from the file?

A.
cat
B.
cut
Answer
C.
grep
D.
paste
E.
None of the above

Answer: Option B

Solution

Answer: Option B
Solution:
In Unix, the cut command is used to extract specific columns from a file. It allows you to specify which columns you want to extract based on delimiters like space or tab.
So, cut is the correct command to extract specific columns from a file.