Created
April 11, 2023 12:33
-
-
Save Cyclenerd/2e9434390938a467c06ee67f00123e81 to your computer and use it in GitHub Desktop.
Create 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
#!/usr/bin/env bash | |
for MY_COUNT in {0..1000} | |
do | |
MY_RANDOM=$((10 + RANDOM % 150)) | |
MY_UUID=$(uuidgen) | |
echo "$MY_COUNT $MY_UUID $MY_RANDOM" | |
dd if="/dev/random" of="test/$MY_UUID" bs=1M count="$MY_RANDOM" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment