1 2 3 4 5 6 7 8 9
#!/bin/sh if [ $# != 1 ]; then echo 'usage: 9a file.s' 1>&2 exit 1 fi out=`echo $1 | sed 's/\.s$//;s/$/.o/'` exec as -o $out $1