Skip to content

Instantly share code, notes, and snippets.

@brodzik
Last active October 31, 2022 13:35
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 brodzik/009ca8fd38ca5bc486c4a58c3f6ac935 to your computer and use it in GitHub Desktop.
Save brodzik/009ca8fd38ca5bc486c4a58c3f6ac935 to your computer and use it in GitHub Desktop.
Generates files with random bytes.
nfiles=10
nbytes=$((2**20))
for i in $(seq -f "%03g" 0 $(($nfiles - 1))); do
dd if=/dev/urandom bs=$nbytes count=1 > $i.bin
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment