Ekstrak jalur dari url sed

$ grep -Po '\w\K/\w+[^?]+' <<<$url
/one/more/dir/file.exe
Ugliest Unicorn