Created
February 3, 2015 07:37
-
-
Save aarsky/a4c6785f89c175bbd435 to your computer and use it in GitHub Desktop.
Print every N-th line of text file
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
| awk '{if (++count%N==0) print $0;}' < file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment