I would like to know how to print specific range of lines using sed or awk and enumerate them like something like this
HORSE
CAT
DOG
LION
MOUSE
MONKEY
SNAKE
PANDA
WOLF
TIGER
so that the output of the line 4-9 looks like this
1. LION
2. MOUSE
3. MONKEY
4. SNAKE
5. PANDA
6. WOLF
Thanks!