Hi All,
I have a psql command that outputs data to a textfile (on Windows):
Code:
psql -a -d somedb -h somehost -U someuser -c "select * from someschema.sometable;" -A -F ; -R \r\n -o "c:\somefile.txt"
Now this outputs the data with \r\n as a literal string in the text between each record. What I need is to have each record start on an actual new line, with a 'hard return' between them. Can this be achieved using psql from the command line?
Any help would be appreciated!
Best regards,
Martijn Senden.