$sed -n '15010,15020p' input.txt
AWK:
$awk '15010<=NR && NR <=15020' input.txt
头/尾:
$head -n 15020 input.txt | tail -n $((15020-15010+1))