title: Shell Script to change to another directory using variables in the script
body: <p>I am trying to write a simple shell script where on running this script it should change to another directory. I want to make it by allocating a variable to the path. <code>vi loc_change</code></p>
  
  <pre><code>#!/bin/bash
  change= "/home/oracle/Public"
  cd $change
  echo "directory changed"
  </code></pre>
  
  <p>after doing this I have changed the permissions 
  <code>chmod 777 loc_change</code> and executing this <code>source ./loc_change</code> after executing this I am getting following error.</p>
  
  <pre><code>./loc_change: line 2: /home/oracle/Public: is a directory
  directory changed
  </code></pre>
  
  <p>I have seen this type of decleration in <a href="http://www.tldp.org/LDP/abs/abs-guide.pdf" rel="nofollow">tldp</a>.
  I am very new to Shell scripting.</p>