Skip to content

Instantly share code, notes, and snippets.

@washtubs
Created July 9, 2014 00:01
Show Gist options
  • Save washtubs/4148e1d2c18253608c36 to your computer and use it in GitHub Desktop.
Save washtubs/4148e1d2c18253608c36 to your computer and use it in GitHub Desktop.
get number of lines using wc
NR==1 {
( "cat " FILENAME " | wc -l" ) | getline NL
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment