#!/bin/sh for f; do if [ -e "$f".asm ]; then # For safety... echo "$0: $f already exists" 1>&2 exit 1 fi echo ";Testname=test; Arguments=-fbin -o$f.bin; Files=.stdout .stderr $f.bin" > "$f".asm done