Extract Numbered Lines from a File with sed

Easy if you can ever remember the magic syntax:

sed -e 'AAA,BBB!d' file.txt

… where AAA and BBB are 1-based line numbers, and the range is treated inclusively.