Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 8 lines (4 sloc) 0.156 kb
7d43fb9 @falconindy Initial commit. Creates alpha-numeric strings of varying length and q…
authored
1 #!/bin/bash
2
12fad01 @falconindy randomJunk: set allowed characters for tr in a variable and default t…
authored
3 ALLOWEDCHARS='[:alnum:][:punct:]'
4
350d5b5 @falconindy randomJunk: cleanup printfs, kill superfluous cat
authored
5 length=${1:-10} quantity=${2:-1}
57402f6 @falconindy Add options to be more flexible
authored
6
350d5b5 @falconindy randomJunk: cleanup printfs, kill superfluous cat
authored
7 < /dev/urandom tr -dc $ALLOWEDCHARS | fold -w $length | head -n $quantity
Something went wrong with that request. Please try again.