Computer Science - Unix - Discussion

Discussion :: Unix - Section 1 (Q.No.8)

8. 

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

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

Answer: Option B

Explanation:

No answer description available for this question.

Sarita said: (Mar 16, 2012)  
How cat command is helping for extracting specific columns from a file ?

Aman said: (May 24, 2014)  
Using Cut will delete the data from the destination. Is that so ?

Maytas said: (Aug 29, 2014)  
We can extract specific columns from the file using 2 ways.

1. cut -f 1,2 -d ' ' filename.
2. awk '{print $1 " " $2}' filename.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.