I am trying to extract a column using AWK. The source file is a .CSV file, and below is the command I use:
awk -F ',' '{print $1}' abc.csv > test1
The data in the abc.csv file is shown below:
xyz@yahoo.com,160,1,2,3
abc@ymail.com,1,2,3,160
But the data obtained in test1 is similar to:
abc@ymail.comxyz@ymail.com
when the file opens in notepad after downloading the file from the server.
source
share