c/compile-file.sh

12 lines
153 B
Bash
Executable File

#!/usr/bin/sh
echo -n "Name of C file to compile "
read c_file
echo -n "Name of resulting binary file "
read bin_file
cc -o $bin_file $c_file
exit 0