Skip to content

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

Notifications You must be signed in to change notification settings

RealNickey/C2txt-Shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages