Find duplicate lines based with a numeric index