title: Extracting directory name from an absolute path using sed or awk
body: <p>I want to split this line</p>
  
  <pre><code>/home/edwprod/abortive_visit/bin/abortive_proc_call.ksh
  </code></pre>
  
  <p>to</p>
  
  <pre><code>/home/edwprod/abortive_visit/bin
  </code></pre>
  
  <p>using <code>sed</code> or <code>awk</code> scripts? Could you help on this?</p>