Search directories recursively and keep duplicates

Search directories recursively and keep duplicates with a sequence
number.