- Extract lines from a text file
Extract lines from a text file
Eg to get lines 3 to 10 inclusive:
sed -n '3,10p' < file.txt
You can also use a combination of `head` and `tail`.
Copyright © 2008-2021, dave. Code samples on Dave's Brain is licensed under the
Creative Commons Attribution 2.5 License.
other material, including English text has all rights reserved.