Blob


1 #!/bin/sh
3 set -e
5 dotimes() {
6 if which jot 2>/dev/null >/dev/null; then
7 jot "$@"
8 elif which seq 2>/dev/null >/dev/null; then
9 seq "$@"
10 else
11 echo "no jot/seq binary found"
12 exit 1
13 fi
14 }
16 file="$1"
18 if [ -z "$file" ]; then
19 echo "USAGE: $(dirname "$0") <filename>"
20 exit 1
21 fi
23 printf "" > "$file"
25 for i in `dotimes 1024`; do
26 for j in `dotimes 1024`; do
27 echo "a" >> "$file"
28 done
29 done