ExampleFile 1 :This DogThis CatThis DuckThis HorseFile 2 :...Animal Name...AniMal Type...AnIMal Class...animal Brand...I want to do the following:add Line 1 of File 1 (This Dog) just below the 1st occurrence of Animal (Ignore case)add line 2 of File 1 (This Cat) just below the 2nd occurrence of Animal (Ignore case)add line 3 of File 1 (This Duck) just below the 3rd occurrence of Animal (Ignore case)add line 4 of File 1 (This Horse) just below the 4th occurrence of Animal (Ignore case)  ...So in general, line n of File 1 should be added just below the nth occurrence of Animal (Ignore case).So, how do I achieve this using sed or awk or any command in Linux?
I want to add n lines from a file(say file1) into another file below the n occurrences of a string in another file in order
text processing;sed