Created
December 13, 2015 02:25
-
-
Save KPCCoiL/6b6908cbe3623830d7bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
#usage : ./runner.zsh 'execution command' problem-id | |
COMMAND=$1 | |
PROBLEMID=$2 | |
for i in {1..5}; do | |
INFILE="2015-yo-t$PROBLEMID-in$i.txt" | |
OUTFILE="2015-yo-t$PROBLEMID-out$i.txt" | |
eval $COMMAND < $INFILE > $OUTFILE | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment