#!/bin/bash

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

