Instead of using the standard output, let's take a look at what contextual output gives us. To get contextual output you issue the diff command like so:
diff --context=1 employee_list1 employee_list2
Contextual output begins with a two line header that will look like this:
***from_file from_file_modification_time
---to_file to_file_modification_time
Following this section will be the meat of the output. This section will actually show you how to make the files match. This output will look like this:
*******************
***from_file_range***
from_file_line
from_file_line
---to_file_range---
to_file_line
to_file_line
Now let's look at the actual output from our two employee files.
*** employee_list1 2008-11-20 13:23:26.000000000 -0500
--- employee_list2 2008-11-20 13:24:12.000000000 -0500
***************
*** 1,4 ****
! Anna
Bob
! Chris
David
--- 1,5 ----
! Angie
Bob
! Betty
! Chenica
David
***************
*** 9,14 ****
Isobelle
! Jack
Kelly
Lana
! Misty
Nana
--- 10,15 ----
Isobelle
! Jackie
Kelly
Lana
! Mary
Nana