title: Bash: How to cd to subdirectory using find?
body: <p>I use <code>cd</code> to a folder with many numbered subfolders. How can I use <code>find</code> to find a subfolder that begins with a certain number and <code>cd</code> to that subfolder?</p>
  <p>Here is what I have currently but it says cd: too many arguments</p>
  <pre><code>cd folder
  cd $(find . -maxdepth 1 -type d -name &quot;$NUM*&quot;)
  </code></pre>
  <p>I used <code>maxdepth</code> because I didn't want to recursively search inside the subfolders. <code>$NUM</code> is a variable that I specify each time I run this script.</p>