Tips, tricks, cheatsheets
$ sed -i '1iTEXT GOES HERE' file.txt
$ sed -i '2iTEXT GOES HERE' file.txt
Source