CSC Web Site
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
www/unix102/walkc.sh

11 lines
160 B

#!/bin/bash
BASE=`basename $1 .c`
gcc -Wall $1 -o $BASE
for TEST in $BASE.in.*
do
OUT=`echo -n $TEST | sed -e s/in/out/`
./$BASE < $TEST > $OUT
done