Computer Science - Unix - Discussion
Discussion Forum : Unix - Section 1 (Q.No. 8)
8.
Which command is used to extract specific columns from the file?
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.
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:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers