#!/bin/sh sed ' /WORD/ a\ Add this line after every line with WORD '