Skip to content

Instantly share code, notes, and snippets.

@mrzarquon
Created December 18, 2015 23:51
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 mrzarquon/7adf72dc76623ac670e2 to your computer and use it in GitHub Desktop.
Save mrzarquon/7adf72dc76623ac670e2 to your computer and use it in GitHub Desktop.
#!/bin/bash
# lazily modified from here: http://unix.stackexchange.com/questions/204069/all-possible-combinations-of-characters-and-numbers
for c1 in {A..Z} {a..z} {0..9}
do
for c2 in {A..Z} {a..z} {0..9}
do
for c3 in {A..Z} {a..z} {0..9}
do
for c4 in {A..Z} {a..z} {0..9}
do
printf "%s\n" "$c1$c2$c3$c4"
done
done
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment