|  |  | 
| EnderUNIX tipsMail to My Friend , Home Page[ Shell Scripting ] "INSERTING LINES WITHIN SCRIPTS" - Ülkü SAYILAN - (2003-12-10 13:46:21) [3470] INSERTING LINES WITHIN SCRIPTS If you want to insert a line at the top (or anywhere for that matter) of a file within a shell script, use the ed editor. EXAMPLE: string="hello" ed << EOF e any_file 1i ${string} Mail to My Friend , Home Page |  |