Created
April 20, 2017 06:48
-
-
Save trajakovic/0896409d009ff83a682265e57256d5c9 to your computer and use it in GitHub Desktop.
Revisions
-
trajakovic created this gist
Apr 20, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ #!/bin/bash #size magnitude sizes=( "" "K" "M" ) for magnitude in "${sizes[@]}"; do for size in `seq 1 5 51`; do echo "Generating ${size}${magnitude}" head -c ${size}${magnitude} </dev/urandom >file-${size}${magnitude}.bin done done #generate sha256checksums rm -f sha256checksums find . -name "*.bin" -type f -exec sha256sum "{}" + > sha256checksums