Created
March 5, 2015 15:48
-
-
Save rkempter/7521b219640777267a4e to your computer and use it in GitHub Desktop.
Sampling from a file through shell
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 'BEGIN {srand()} !/^$/ { if (rand() <= .5) print $0}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment