I want to use sed command to append text at multiple occurrence of string.
For Ex:
Hello world
types="program"
Mario
types="Game"
Hello world
types="program"
Mario
types="Game"
So at first occurrence of Mario i want to append 'firstMario' and at next occurrence 'secondMario', and so on. OutPut:
Hello world
types="program"
firstMario
types="Game"
Hello world
types="program"
secondMario
types="Game"