Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@shadowbq
Created May 6, 2019 19:09
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 shadowbq/4b7f02b1e9581dbaf7b06486551fb7a1 to your computer and use it in GitHub Desktop.
Save shadowbq/4b7f02b1e9581dbaf7b06486551fb7a1 to your computer and use it in GitHub Desktop.
#! /bin/bash
for d in {1..100}; do
mkdir -p ./dir-$(printf %03d "$d") && cd ./dir-$(printf %03d "$d")
for n in {1..100}; do
( dd if=/dev/urandom of=file-$( printf %03d "$n" ).bin bs=1 count=$(( RANDOM + 1024 )) ) > /dev/null 2>&1
done
cd ..
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment