title: How can i change directory in shell script with variables
body: <p>this script file name "1sr" and i can work in terminal ". 1sr"</p>
  
  <p>i want to change directory "home/byram/workspace/1/src/com/seri/*"</p>
  
  <pre><code>#!bin/sh
  f=$(basename $0 | tr -d "sr")
  pth="/home/byram/workspace/$f"
  my1=$(ls $pth/src/com/seri)
  cd $etc/src/com/seri/$my1
  </code></pre>
  
  <p>after ". 1sr" command f variable set "bash"
  how can i fix it?</p>