How can I get a line number that contains a specified string in a text file and write a word one line below it?