Get file content from line x to line y

Reading Time: 1 minute

Solution

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

 

We transform challenges into digital experiences

Get in touch to let us know what you’re looking for. Our policy includes 14 days risk-free!

Free project consultation