Created
October 1, 2014 09:56
-
-
Save draganHR/188af664af652f0a2ac9 to your computer and use it in GitHub Desktop.
Generate large random files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FNAME=$1 | |
COUNT=$2 | |
i=1 | |
while [[ $i -le $COUNT ]] | |
do | |
echo "$i..." | |
openssl rand -out out-${FNAME}.${i}.bin -base64 $(( 2**30 * 3/4 )) | |
((i = i + 1)) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment