Computer Science - Unix - Discussion

Discussion Forum : Unix - Section 1 (Q.No. 8)
8.
Which command is used to extract specific columns from the file?
cat
cut
grep
paste
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
3 comments Page 1 of 1.

Maytas said:   1 decade ago
We can extract specific columns from the file using 2 ways.

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

Aman said:   1 decade ago
Using Cut will delete the data from the destination. Is that so ?

Sarita said:   1 decade ago
How cat command is helping for extracting specific columns from a file ?

Post your comments here:

Your comments will be displayed after verification.