Skip to content

Instantly share code, notes, and snippets.

@bjhaid
Created June 16, 2015 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjhaid/d85917c7ca47d2c2abaf to your computer and use it in GitHub Desktop.
Save bjhaid/d85917c7ca47d2c2abaf to your computer and use it in GitHub Desktop.
How to view random parts of a stream
awk 'BEGIN {srand()} !/^$/ { if (rand() <= .01) print $0}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment