title: Getting last folder from a directory using grep or cut
body: <p>i just want to have the last word I have tried reverse too still I am not able to get the last word.</p>
  
  <pre><code>../init.d/halt
  ../init.d/killall
  ../init.d/watchdog
  ../init.d/iptables
  ../init.d/network
  ../init.d/evlogrmt
  ../init.d/evlog
  ../init.d/rdisc
  ../init.d/syslog-ng
  ../init.d/portmap
  </code></pre>