title: Convert pipe delimited csv to tab delimited using batch script
body: <p>I am trying to write a batch script that will query a Postgres database and output the results to a csv. Currently, it queries the database and saves the output as a pipe delimited csv.</p>
  
  <p>I want the output to be tab delimited rather than pipe delimited, since I will eventually be importing the csv into Access. Does anyone know how this can be achieved?</p>
  
  <p>Current code:</p>
  
  <pre><code>cd C:\Program Files\PostgreSQL\9.1\bin
  psql -c "SELECT * from jivedw_day;" -U postgres -A -o sample.csv cscanalytics
  </code></pre>
  
  <p>postgres = username
  cscanalytics = database</p>