Skip to content

Instantly share code, notes, and snippets.

@marklit
Created November 11, 2014 22:13
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 marklit/73cd097f5638953f2631 to your computer and use it in GitHub Desktop.
Save marklit/73cd097f5638953f2631 to your computer and use it in GitHub Desktop.
Generate messages with serial ids
# From: http://www.reddit.com/r/Python/comments/2lzry9/most_efficient_way_to_generate_random_dataevents/clzoj3t
head -c <large number> /dev/zero ¦ tr '\0' '\n' ¦ cat -n ¦ xargs -L1 printf 'This is message number %s\n'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment