1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/sh GEN="${2:-gens/test_basic.gen}" echo "[" for i in $(seq $1); do echo -ne "\t#${GEN}#" if [ "$i" -eq "$1" ]; then echo else echo "," fi done echo "]"