- export the content of the data into csv format, any separetor would work.
- here i use | , the trick is the "sep=|" (it tell what is your delimiter)make sure you have this as the first line of the file, so when they open it in excel all should be aligned.
vsql -U dbadmin -w password -F $'|' -At -c "SELECT * FROM table_name" > '/tmp/bla.csv' sed -i '1s/^/sep=|\n/' /tmp/bla.csv
The sed command will add the delimiter as the first line in the file.