-
Notifications
You must be signed in to change notification settings - Fork 8
rgrade.sh
dopefishh edited this page Nov 7, 2018
·
4 revisions
rgrade.sh [command]
This scripts helps to grade fairly.
When run, it will enter a randomly chosen subdirectory (of the current working directory) and execute the provided command (or give you a fresh shell). If this command (or shell) exits succesfully, it will mark this directory as seen (by creating a .seen
file), and drop you back to where you were. Directories that were already visited will not be re-visited.
$ ls -F s1/ s2/ s3/ $ ~/bb-scripts/rgrade.sh Type 'exit' to finish grading; use 'exit 1' to abort grading the current submission. Entering s1. s1$ exit Exiting s1. Still 2 to go... $ ~/bb-scripts/rgrade.sh Type 'exit' to finish grading; use 'exit 1' to abort grading the current submission. Entering s3. s3$ exit Exiting s3. Still 1 to go... $ ~/bb-scripts/rgrade.sh Type 'exit' to finish grading; use 'exit 1' to abort grading the current submission. Entering s2. s2$ exit Exiting s2. You have finally finished!
protip: if you run rgrade.sh
with a vim
my editor you can do: :cq
to exit with an exit code different than 0
.