SyntaxFix
Write A Post
Hire A Developer
Questions
If for example you want to get the lines 10 to 20 of a file you can use each of these two methods:
head -n 20 york.txt | tail -11
or
sed -n '10,20p' york.txt
p in above command stands for printing.
p
Here's what you'll see: