#!/bin/bash

c=0;
while read line; do
    ((c++))
    [[ (c -gt $1) && (c -lt $2 ) ]] && echo $line
    [[ c -gt $2 ]] && break
done;