#! /bin/sh # # generate states-n-k.txt files # n=6 for k in $(seq 0 $((n-1))) do out="states-${n}-${k}.txt" cmd="./states $n $k > $out" echo "$cmd" eval "$cmd" done