How to remove all characters in string after 3.rd slash in bash by sed or awk?   

I have no idea how to.  

eg. we have `http://qwe.qwe.rty/asdfgh/zxc.html`
and we need: `http://qwe.qwe.rty/`

Thank you so much :)