#!/bin/sh
sed '
/WORD/ i\
Add this line before every line with WORD
'

AskApache Web Development