Hi.
Currently, I am outputting CSV data from Vertica with the following command.
#!/usr/bin/bashvsql -F ',' -P pager=off -R $'\r\n' -AXQtnq -f ${SQL_FILE} > ${UNLD_FILE}
The output CSV file is as follows.
col1,col2,...,col10[\r\n]col1,col2,...,col10[\r\n][\n][EOF]
Is it possible to avoid outputting the \n in the output CSV file?
(Currently, I pass the result of the vsql command to the pipe and use head -c -1 to remove it)
That's all, I look forward to your response.