title: Redirect bash output to dynamic file name
body: <p>I'm writing a bash script that will (hopefully) redirect to a file whose name is generated dynamically, based on the the first argument given to the script, prepended to the some string. The name of the script is ./buildcsvs. </p>
  
  <p>Here's what the code looks like now, without the dynamic file names</p>
  
  <pre><code>#!/bin/bash
  mdb-export 2011ROXBURY.mdb TEAM &gt; team.csv
  </code></pre>
  
  <p>Here's how I'd like it to come out</p>
  
  <pre><code>./buildcsvs roxbury
  </code></pre>
  
  <p>should output </p>
  
  <pre><code>roxburyteam.csv
  </code></pre>
  
  <p>with "$1" as the first arg to the script, where the file name is defined by something like something like </p>
  
  <pre><code>"%steam" % $1
  </code></pre>
  
  <p>Do you have any ideas? Thank you</p>