sed or awk delete after last slash
How can I delete everything after the last slash of a line. For example
I know how to delete everything before the last slash:
But how to do it after last the slash?