I want to split this line
/home/edwprod/abortive_visit/bin/abortive_proc_call.ksh
to
/home/edwprod/abortive_visit/bin
May be command dirname is what you searching for?
dirname /home/edwprod/abortive_visit/bin/abortive_proc_call.ksh
Or if you want sed, so see my solution:
echo /home/edwprod/abortive_visit/bin/abortive_proc_call.ksh | sed 's/\(.*\)\/.*/\1/'