Skip to content

Instantly share code, notes, and snippets.

@Cyclenerd
Created April 11, 2023 12:33
Show Gist options
  • Save Cyclenerd/2e9434390938a467c06ee67f00123e81 to your computer and use it in GitHub Desktop.
Save Cyclenerd/2e9434390938a467c06ee67f00123e81 to your computer and use it in GitHub Desktop.
Create random files
#!/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