Created
August 1, 2014 01:31
-
-
Save itomg/4033f2d4bff75f3ecb0f to your computer and use it in GitHub Desktop.
How to display certain lines from a huge file in Linux?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -n '10000000,10000020p' filename | |
# You might be able to speed that up a little like this: | |
sed -n '10000000,10000020p; 10000021q' filename | |
# ref http://serverfault.com/questions/133692/how-to-display-certain-lines-from-a-text-file-in-linux |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment