$ cat ip.txt
address
range
substitution
pattern
sample
Range specified is inclusive of those line numbers
$ sed -n '2,4p' ip.txt
range
substitution
pattern
$ can be used to specify last line. Space can be used between address and command for clarity
$ sed -n '3,$ s/[aeiou]/...