How do I print the first column in Unix?

How do I print the first column in Unix?
Answer
awk to print the first column. The first column of any file can be printed by using $1 variable in awk. But if the value of the first column contains multiple words then only the first word of the first column prints. By using a specific delimiter, the first column can be printed properly.
 

Tìm kiếm

Back
Top