Linux Bash – Select Column 1 From Database And Output

awk -F, ‘BEGIN { OFS=”,” }
{
print $1
}’ inputfile.csv > emails.txt

#This script assumes that the email address of each recipient is in column 1. If this is not the case either run standardization_change_field order script or adjust this script by changing print $1. This #script is designed to extract only the email column from a database and put it in a new file.
#change OFS=”,” from , to desired delimiter if required.