title: How to access a target directory using bash scripting
body: <p>I am relatively new to shell scripting. I am writing a script to compress all the files in current and target directory. I have found success in compressing the files of a current directory but I'm unable to write a script for compressing files in a target directory can anyone guide me?</p>
  
  <p>I want to do something like this </p>
  
  <pre><code>% myCompress -t /home/users/bigFoot/ pdf ppt jpg
  </code></pre>