title: bash command to create custom named file
body: <p>Simple task probably buy I can not seem to find the command on <a href="http://faculty.plattsburgh.edu/jan.plaza/computing/help/commands.html" rel="nofollow">http://faculty.plattsburgh.edu/jan.plaza/computing/help/commands.html</a></p>
  
  <p>Basically I have a string of text that I know and have set in a variable on my bash file.</p>
  
  <p>I then need to save this text as a file called Foo.conf in desired directory.</p>
  
  <p>Here is what I have so far:</p>
  
  <pre><code>#!/bin/bash
  stringForFile='port=6000 Username=USER Password=PASSWORD'
  mkdir '~/.Foo'
  # need to save file as Foo.conf to .Foo directory 
  </code></pre>
  
  <p>many thanks in advance</p>