Blob
1 #!/bin/sh3 set -e5 dotimes() {6 if which jot 2>/dev/null >/dev/null; then7 jot "$@"8 elif which seq 2>/dev/null >/dev/null; then9 seq "$@"10 else11 echo "no jot/seq binary found"12 exit 113 fi14 }16 file="$1"18 if [ -z "$file" ]; then19 echo "USAGE: $(dirname "$0") <filename>"20 exit 121 fi23 printf "" > "$file"25 for i in `dotimes 1024`; do26 for j in `dotimes 1024`; do27 echo "a" >> "$file"28 done29 done