Created
July 9, 2013 14:34
-
-
Save sebw/5957820 to your computer and use it in GitHub Desktop.
awk : print every 20th line in the file data.txt
This file contains 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 '(NR%20==0)' data.txt | |
NF The number of fields in the current input record. | |
NR The total number of input records seen so far. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment