cs50p/problems/prepare.sh

9 lines
272 B
Bash
Executable File

#!/usr/bin/bash
this_script_directory=$(cd "$(dirname "${0}")" && pwd);
read -r -p "Enter the name of the next challenge " challengeName;
cd "$this_script_directory";
mkdir "$challengeName";
cd "$challengeName";
code "$challengeName".py
code "test_$challengeName".py