mirror of
https://github.com/omar-polo/gmid.git
synced 2024-07-29 07:55:30 +02:00
30 lines
396 B
Plaintext
30 lines
396 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
set -e
|
||
|
|
||
|
dotimes() {
|
||
|
if which jot 2>/dev/null >/dev/null; then
|
||
|
jot "$@"
|
||
|
elif which seq 2>/dev/null >/dev/null; then
|
||
|
seq "$@"
|
||
|
else
|
||
|
echo "no jot/seq binary found"
|
||
|
exit 1
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
file="$1"
|
||
|
|
||
|
if [ -z "$file" ]; then
|
||
|
echo "USAGE: $(dirname "$0") <filename>"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
printf "" > "$file"
|
||
|
|
||
|
for i in `dotimes 1024`; do
|
||
|
for j in `dotimes 1024`; do
|
||
|
echo "a" >> "$file"
|
||
|
done
|
||
|
done
|