bash

Get file content from line x to line y

Solution

$ awk 'NR >= x && NR <= y' path/to/file