C2txt-Shell is a simple Bash script that compiles and runs C programs, captures their output, and generates a text file with your name, class, C code, inputs, and program output.
- Automatic compilation and execution of C programs.
- Captures the output of your C programs.
- Generates a text file with your name, class, C code, inputs, and program output.
- Copy your C programs to the "input_folder" directory.
- Open your terminal.
- Navigate to the directory containing the script using the
cd
command. - Run the script with the following command:
bash C2txt-Shell.sh
- The script will compile and run each C program in the input folder and generate a corresponding text file with your name, class, C code, inputs, and program output in the "output_folder" directory.
- Bash shell
- GCC compiler
- smbclient
You can install GCC compiler and smbclient using the following command in most Linux distributions:
sudo apt-get install gcc smbclient
This program is licensed under the MIT License. Feel free to use, modify, and distribute this code as you wish.
Contributions, issues, and feature requests are welcome! Feel free to check issues page.
Give a ⭐️ if this project helped you!