How to get a one row select into bash variables named for each column in the row

Post date: Nov 11, 2014 10:34:29 PM

psql -X --field-separator ' ' -At -d sachi -f sachi.sql|while read -r f1 f2 f3 f4 f5 f6; do echo "$f3"; done