title: Bad substitution using awk
body: <p>I am trying to open some files as <code>awk</code>'s output; the command is:</p>
  
  <pre><code>grep "formatDate\s=" "js/components/" | awk '{print $1}' |  awk -F  ":" '/1/ {print $1}'
  </code></pre>
  
  <p>and it (seems to) work correctly.</p>
  
  <p>If I try to open that output as vim's tabs, like this:</p>
  
  <pre><code>vim -p ${ grep "formatDate\s=" "js/components/" | awk '{print $1}' |  awk -F  ":" '/1/ {print $1}' }
  </code></pre>
  
  <p>then I get:</p>
  
  <blockquote>
    <p>-bash: ${ grep "formatDate\s=" "js/components/" | awk '{print $1}' |  awk -F  ":" '/1/ {print $1}' }: bad substitution</p>
  </blockquote>
  
  <p>Any help? Thanks.</p>