A: The below inserts a new line at row 3 with the string "sometext" in a file called "test.txt"
# sed -i '3isometext' test.txt