This is a utility bash script for competitive programming (CP) contests.
This script will make folder, test case files (.txt), output files (.txt) and code (.cpp) files instantly. Using this script saves time making new folder for each CP contest. It will also copy your template into each of the code (.cpp) files.
- Download the script.
- Edit the path of your template (from root) in
template_path
variable. - Run the script passing three commands.
- Path of directory where you want to make the new folder (from root).
- Number of test cases and output files which you want to make.
- Number of code files which you want to make.
. utility.sh <directory_name> <number_of_test_cases> <number_of_codes>
For e.g.
. utility.sh ../temp/ 3 3