My solution for 'Lines in a given range'


#1

min=$(head -n 1 input | cut -f 1 -d ’ ')
max=$(head -n 1 input | cut -f 2 -d ’ ')
diff=$(($max - $min + 1))
head -n $max input | tail -n $diff