#!/bin/sh sed ' /WORD/ c\ Replace the current line with the line '