c/compile-file.sh

12 lines
153 B
Bash
Raw Normal View History

2023-01-13 12:56:32 +00:00
#!/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