How to get next 4 lines

Hi Frds,
I am new to scripting.

My Doubt is how to get the next 4 lines If I already know the 1st line.
That means,
bash-2.03$ grep -i "abc" /tmp/us1.txt
abc : 904015467

I will get the above result if I grep for the "abc" in my file.
but I am getting only "abc" content line.But I need next 5 lines after that.
That means if the abc : 904015467 is there in the 2nd line,I need to get 3rd to 8th line.

Could anybody help on this plz.

Thanks&Regards,
Anji

Hmm... you need to write few lines (if not a script) for this.. Some thing like this..

 n=0
  n=`grep -n 'abc' $file_name | head -1| cut -d: -f1`
  ((n=n+4))
  head -$n $file_name | tail -4

Jope this works for you.

this may work:

grep -A 5 -i "abc" /tmp/us1.txt

or -A 4 if that is what You want

@OP Please post sample data and requested output.

$ yes junk | nl -s: | sed 15q > data
$ cat data
     1:junk
     2:junk
     3:junk
     4:junk
     5:junk
     6:junk
     7:junk
     8:junk
     9:junk
    10:junk
    11:junk
    12:junk
    13:junk
    14:junk
    15:junk
$ sed -n '/ 6:/{n;N;N;N;p;}' data
     7:junk
     8:junk
     9:junk
    10:junk
$