Have you any experience in awk? Here you can define a field separator other than the blank space(s) and get the last field of each line, as in
Code:
gawk -F\/ '{print $NF}' dirlist
where dirlist is a file containing your input lines. Or in alternative you can simply pipe the input from another command to gawk.