title: Extract part of a path in batch script
body: <p>I have a batch script with input say <code>/home/home1/home2/home3/</code></p>
  
  <p>I need to extract part of the file path say <code>/home2/home3</code>. How can I achieve this?</p>
  
  <p>Thanks for the help!</p>