seq() { awk "BEGIN { for (i = $1; i <= $2; i++) print i }"; } x=val cat <out; cat out to file EOF cat <