title: Format the output of a CMD command
body: <p>Hi I'm executing this bat in a windows environment</p>
  
  <pre><code>for /f "usebackq" %%i in (hostname) DO SET host=%%i
  for /R c:\Users\ %%G IN (*.jpg) DO (
  echo %host% &gt;&gt; output.txt
  certutil -hashfile "%%G" MD5)
  </code></pre>
  
  <p>And I'm getting this output</p>
  
  <pre><code>Hostame
  Hahs MD5 of the file &lt;file&gt; is
  &lt;hash&gt;
  CertUtil: -hashfile command executed
  </code></pre>
  
  <p>I need help so I can format the output like:</p>
  
  <pre><code>&lt;hostname&gt;,,&lt;File&gt;,,&lt;hash&gt;
  </code></pre>