title: Remove first directory components from path of file
body: <p>I need to remove one directory (the leftmost) from variables in Bash. I found ways how can I remove all the path or use <code>dirname</code> and others but it was removing all or one path component on the right side; it wouldn't help me. So you have a better understanding of what I need, I'll write an example:</p>
  
  <p>I have <code>a/project/hello.c</code>, <code>a/project/docs/README</code>, ... and I want to remove that <code>a/</code> so after some commands I´ll have <code>project/hello.c</code> and <code>project/docs/README</code>, ...</p>