SED начало файла

sed  -i '1i text' filename
Alex Dee