Search the word and print the lines
===

My requirement is ,say i have file whose content is 
----------------------------------------------------
----------------------------------------------------
build.sh
1c1
<      $Header: /deutsche/mksproj/deliv/prd/build.sh,v 2.17 2002/10/21 14:46:42 premw prd $
---
>      $Header: /deutsche/mksproj/deliv/prd/build.sh,v 2.15 2000/06/08 22:04:59 prkea prd $
----------------------------------------------------
----------------------------------------------------
----------------------------------------------------
build_ln.sh
1c1
<      $Header: /deutsche/mksproj/deliv/prd/build_ln.sh,v 1.18 2003/06/26 19:01:52 prrdh prd $
---
>      $Header: /deutsche/mksproj/deliv/prd/build_ln.sh,v 1.17 2002/04/19 20:35:33 premw prd $
----------------------------------------------------
----------------------------------------------------
build_pj.sh
-----------------------------------
irExpandShortName.exe
2,12c2,12
<      $Header: /vobs/account/libex/extract.h /main/r2.8_int/1 20-Oct-2009.01:56:24 vobadmin $
<      $Header: /vobs/account/libex/typedefs.h /main/r2.8_int/1 20-Oct-2009.01:56:38 vobadmin $
<      $Header: /vobs/account/libex/hpux.h /main/r2.8_int/1 20-Oct-2009.01:56:28 vobadmin $
<      $Header: /vobs/account/libex/extract.h /main/r2.8_int/1 20-Oct-2009.01:56:24 vobadmin $
<      $Header: /vobs/account/libex/acc4.h /main/r2.8_int/1 20-Oct-2009.01:56:30 vobadmin $
<      $Header: /vobs/account/libex/lrux.h /main/r2.8_int/1 20-Oct-2009.01:56:34 vobadmin $
<      $Header: /vobs/account/libex/extract4.h /main/r2.8_int/1 20-Oct-2009.01:56:25 vobadmin $
<      $Header: /vobs/account/libex/acc3.h /main/r2.8_int/1 20-Oct-2009.01:56:30 vobadmin $
<      $Header: /vobs/account/libex/acc4.h /main/r2.8_int/1 20-Oct-2009.01:56:30 vobadmin $
<      $Header: /vobs/account/libex/lrux.h /main/r2.8_int/1 20-Oct-2009.01:56:34 vobadmin $
<      $Header: /vobs/account/libex/Extract.h /main/r2.8_int/1 20-Oct-2009.01:56:14 vobadmin $
---
>      $Header: /vobs/account/libex/extract.h /main/r2.6_int/1 8-May-2008.12:19:20 vobadmin $
>      $Header: /vobs/account/libex/typedefs.h /main/r2.6_int/1 8-May-2008.12:19:48 vobadmin $
>      $Header: /vobs/account/libex/hpux.h /main/r2.6_int/1 8-May-2008.12:19:28 vobadmin $
>      $Header: /vobs/account/libex/extract.h /main/r2.6_int/1 8-May-2008.12:19:20 vobadmin $
>      $Header: /vobs/account/libex/acc4.h /main/r2.6_int/1 8-May-2008.12:19:31 vobadmin $
>      $Header: /vobs/account/libex/lrux.h /main/r2.6_int/1 8-May-2008.12:19:40 vobadmin $
>      $Header: /vobs/account/libex/extract4.h /main/r2.6_int/1 8-May-2008.12:19:22 vobadmin $
>      $Header: /vobs/account/libex/acc3.h /main/r2.6_int/1 8-May-2008.12:19:30 vobadmin $
>      $Header: /vobs/account/libex/acc4.h /main/r2.6_int/1 8-May-2008.12:19:31 vobadmin $
>      $Header: /vobs/account/libex/lrux.h /main/r2.6_int/1 8-May-2008.12:19:40 vobadmin $
>      $Header: /vobs/account/libex/Extract.h /main/r2.6_int/1 8-May-2008.12:19:01 vobadmin $
20c20
<      $Header: /deutsche/mksproj/deliv/prd/write_descfile.c,v 1.33 2010/06/21 08:55:52 prrnr prd $
---
>      $Header: /deutsche/mksproj/deliv/prd/write_descfile.c,v 1.32 2008/10/31 09:34:49 prrhs prd $
----------------------------------------------------
---------------------------------------------------


Now i want my output to be in excel sheet where
the first column should be the name of the script and the second and third column the next line , the columns are meant to differentaita the versions of the scripts

Example
build.sh     $Header: /deutsche/mksproj/deliv/prd/build.sh,v 2.17 2002/10/21 14:46:42 premw prd $     $Header: /deutsche/mksproj/deliv/prd/build.sh,v 2.15 2000/06/08 22:04:59 prkea prd $


here first column is build.sh
second column $Header: /deutsche/mksproj/deliv/prd/build.sh,v 2.17 2002/10/21 14:46:42 premw prd $ 
third column $Header: /deutsche/mksproj/deliv/prd/build.sh,v 2.15 2000/06/08 22:04:59 prkea prd $

Please let me know how to do this...