Never done unix scripting, but in windows scripting you would have to read the contents of the file to a variable, empty the file, write the new lines, then write the contents of the original file back. Only way I know to insert lines at the beginning of a file. End of file is a hell of a lot easier 🙂.