title: Pattern matching with grep
body: <p>I have a full path of a file say <code>hai/hello/home/something/file.txt</code> .How can I get <code>file.txt</code> as output eliminating full path?  </p>
  
  <p>How to do that with grep?</p>