Created
May 6, 2019 19:09
-
-
Save shadowbq/4b7f02b1e9581dbaf7b06486551fb7a1 to your computer and use it in GitHub Desktop.
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
#! /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