Sensex ends little changed, earnings eyed

The benchmark index ended almost flat with gains in metal and oil & gas stocks offsetting losses in banking and capital goods counters.