sed
You can use the following command sedto do this if your lines are in foo.txt:
sed -n '/\(.*\/\)\{4,\}/p' foo.txt
The parameter -nhas no way out, but lines matching the pattern between /are printed anyway thanks to the command pat the end of the expression sed.
: 4 /, .