title: How to use $PWD in a Bash script
body: <p>I am writing a small Bash script to do some automatic commands. In particular, I would like to save the current directory path in a variable called my pwd and then use mypwd to change directory.</p>
  
  <p>I have tried the following lines with no success:</p>
  
  <pre><code>mypwd=${PWD}
  cd mypwd/other/
  cd $mypwd/other/
  </code></pre>
  
  <p>How can I perform this operation in Bash?</p>