How to grep the line with error where keyword in next line is known.

If a file consists of a thousands of line. There is a error line in the file which exists just before the line with word "Manish".

How could I write a script to grep the line with error.

Ex:-
If I have a UNIX file which contains the following:

bash-3.2$ cat unix.txt
Unix (officially trademarked as UNIX, sometimes also written as Unix) is a multitasking, multi-user computer operating system originally developed in 1969.
The Unix operating system was first developed in assembly language, but by 1973 had been almost entirely recoded in C, greatly facilitating its further development and porting to other hardware.
Today's Unix systems are split into various branches, developed over time by AT&T as well as various commercial vendors and non-profit organizations.
The second edition of Unix was released on December 6th, 1972.
The Open Group, an industry standards consortium, owns the UNIX trademark.
During the late 1970s and early 1980s, the influence of Unix in academic circles led to large-scale adoption of Unix (particularly of the BSD variant, originating from the University of California, Berkeley) by commercial startups, the most notable of which are Solaris, HP-UX and AIX.
The term "traditional Unix" may be used to describe a Unix or an operating system that has the characteristics of either Version 7 Unix or UNIX System V.
Unix operating systems are widely used in servers, workstations, and mobile devices.
The Unix environment and the client server program model were essential elements in the development of the Internet.
Originally, Unix was meant to be a programmer's workbench rather than be used to run application software.
The system grew larger when the operating system started spreading in the academic circle.
Many individual users started adding their own tools to the system and passing it along to colleagues.
Both Unix and the C programming language were developed by AT&T and distributed to government and academic institutions.
------------------ THIS IS THE ERROR LINE, (just before the line contains Manish).-------------------------------------------
Manish is currently learning UNIX.
Unix was designed to be portable, multi-tasking and multi-user in a time-sharing configuration.
Unix systems are characterized by various concepts: the use of plain text for storing data; a hierarchical file system.
Under Unix, the "operating system" consists of many utilities along with the master control program, the kernel.
The microkernel concept was introduced in an effort to reverse the trend towards larger kernels and return to a system in which most tasks were completed by smaller utilities.
bash-3.2$

Now in the above file I know the error line exixts just before the line contains Manish word.

what the script line will be used to fetch the error line directly?

Please Note:- Manish word is no where used in the error line, it is only in the next line of error.

Many thanks in advance.

if you have gun grep, then you can try below

 
 
grep -B 2 Manish  unix.txt

Thanks a lot for quick reply. I got the desired output but having 1 more query.

By using "grep -B 2 Manish unix.txt" I am getting an output which consists of two lines:
1st is the error line and 2nd is the lines contains keyword Manish.

But is there any way I can only fetch the error line, not the lines contains keyword Manish?

This is one way:

grep -B 2 Manish unix.txt | grep -v Manish
$ awk '{a=$0; getline; if ($0~/Manish/) {print a}}' input.txt 
------------------ THIS IS THE ERROR LINE, (just before the line contains Manish).-------------------------------------------

---------- Post updated at 07:51 PM ---------- Previous update was at 07:51 PM ----------

 grep -B 2 Manish unix.txt | head -1