Permalink
Browse files

add random file sizes

  • Loading branch information...
mfenniak committed Aug 23, 2012
1 parent b0e6fa6 commit 42e27d5f3844544d3292fbb4da4e4fd65ad98bf5
Showing with 3 additions and 2 deletions.
  1. +3 −2 mktest.sh
View
@@ -1,12 +1,13 @@
#!/bin/bash
-for i in {1..1000};
+for i in {1..10};
do
echo $i;
mkdir $i;
for j in {1..10000};
do
- dd if=/dev/urandom of=$i/$j bs=8k count=1 &> /dev/null;
+ let "x = 4 + 4 * ($RANDOM % 4)"
+ dd if=/dev/urandom of=$i/$j bs=${x}k count=1 &> /dev/null;
done
done

0 comments on commit 42e27d5

Please sign in to comment.