title: How to input SQL query from command line, and retrieve output in simpler format
body: <p>I'm using Firebird's <code>isql.exe</code> tool to query an existing database:</p>
  <pre><code>isql -u &lt;username&gt; -p &lt;password&gt; &lt;database&gt; -i &lt;file.sql&gt; -o &lt;output.txt&gt;
  </code></pre>
  <p>This reads my SQL statements from <code>file.sql</code> and saves the results to <code>output.txt</code>.</p>
  <p>Is there a way to feed the SQL statements into <code>isql</code> via command line, and not from a file?</p>
  <p>This is because I actually plan to execute the command above in my .exe installer script (via <code>ExecWait</code> of NSIS Installer).</p>
  <p>Also, is there a way to format the output such that only the actual info needed are returned? Currently the output's first line contains the column names, second line a bunch of &quot;====&quot; as separator, third line the actual info, with an arbitrary number of spaces in between each column. This output format makes it hard for me to use in my script.</p>