Skip to content

Instantly share code, notes, and snippets.

@guysmoilov
Created July 4, 2016 17:49
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 guysmoilov/9cef58be9319f4c51e49628bf559de2a to your computer and use it in GitHub Desktop.
Save guysmoilov/9cef58be9319f4c51e49628bf559de2a to your computer and use it in GitHub Desktop.
# Usage: arg 1 is number of random lines to generate, arg 2 is length of each line
# Stolen from: https://gist.github.com/earthgecko/3089509
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w $2 | head -n $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment