Skip to content

Instantly share code, notes, and snippets.

@sebw
Created July 9, 2013 14:34
Show Gist options
  • Save sebw/5957820 to your computer and use it in GitHub Desktop.
Save sebw/5957820 to your computer and use it in GitHub Desktop.
awk : print every 20th line in the file data.txt
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