c-basic/compile-and-run.sh
2022-11-25 00:15:26 +01:00

5 lines
135 B
Bash
Executable file

#!/bin/bash
noext=$(echo "$1" | cut -f 1 -d '.')
echo "compiling $1 ..."
gcc $1 -o bin/$noext -lm
./bin/$noext $2 $3 $4 $5 $6 $7 $8 $9