Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.45 KB

README.md

File metadata and controls

38 lines (30 loc) · 1.45 KB

C2txt-Shell 🐚

C Program Runner and Documentation Generator 🏃‍♂️📝💻

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.

🚀 Features

  • 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.

🛠️ How to Use

  1. Copy your C programs to the "input_folder" directory.
  2. Open your terminal.
  3. Navigate to the directory containing the script using the cd command.
  4. Run the script with the following command:
bash C2txt-Shell.sh
  1. 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.

📦 Requirements

  • 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

📜 License

This program is licensed under the MIT License. Feel free to use, modify, and distribute this code as you wish.

🤝 Contributing

Contributions, issues, and feature requests are welcome! Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!