title: How to "cd" to a directory after "grep"?
body: <p>I want to find a directory using <code>grep</code> then change current directory to the resulting directory.
  For example:</p>
  
  <pre><code>$ ls | grep 1670 |
  </code></pre>
  
  <p>finds me directory haib12CJS1670. I am trying to do something like below:</p>
  
  <pre><code>$ ls | grep 1670 | cd
  </code></pre>
  
  <p>so that my directory is set to haib12CJS1670 at a single step. Obviously my way is not working. Any suggestions? Thank you</p>