Read line with particular number of lines

Hi all,

I have a file sample.txt

abc
asd
adf
daf
adw
add
adv
wdf

I want to control the number of lines to read

Like if i give input as ./script_name 2 5

required output

asd
adf
daf
adw

ultimate i need a script which reads the particular number of lines and
runs nohup automatiocally in bash

nohup script_name asd &
nohup script_name adf &
.........

thanks

sed -n '2,5p' file
asd
adf
daf
adw

start with:

sed -n "${1:-1},${2:-$}p" sample.txt | while read scr
do
  nohup script_name "$scr" &
done