title: Can we store "cd .." path in a variable in bash file?
body: <p>I am new to the bash my use case is to store the one previous directory in to a variable.</p>
  <p>Example:</p>
  <pre><code>DIR='/local/example/'
  </code></pre>
  <p>How  can we add <code>/local/</code> to any variable like <code>$PREV</code>?</p>