title: How to parse out the end of a path in a unix shell script?
body: <p>I have a .sh unix shell script that receives as a parameter a path, say <code>/home/test/user1</code>.  So, in the variable <code>${1}</code>, that is the parameter.  </p>
  
  <p>I want to create a file whose name is based on the last part of that path, user1.  How can I parse that path to retrieve the last piece of the path?</p>