Created
July 9, 2014 00:01
-
-
Save washtubs/4148e1d2c18253608c36 to your computer and use it in GitHub Desktop.
get number of lines using wc
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
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