stampare righe precedenti ad un match in file

Salve a tutti...volevo chiedere a voi,che sicuramente ne sapete piu di me,come posso ottenere la seguente soluzione:

ho un file del tipo:

CIAO COME STAI
PERCHE COME STAI
CIAO COME VA
ALLO CHE FACCIAMO
.................

io vorre che nel caso in cui in una riga � presenta la parola "CHE" allora stampo a video le tre righe precedenti alla parola ottenendo quindi:

CIAO COME STAI
PERCHE COME STAI
CIAO COME VA

Come shell uso la KORN SHELL..vi ringrazio in anticipo per l'aiuto...

Hello.

Per our forum rules, all posts must be in English.

We do provide translation services for posts from English to a number of languages as a benefit to users. However, posts must be in English.

Please repost in English.

Thank you for your cooperation.

The UNIX and Linux Forums.

Also use CODE tags when posting code, data or logs, ty.