Skip to content

Instantly share code, notes, and snippets.

@KPCCoiL
Created December 13, 2015 02:25
Show Gist options
  • Save KPCCoiL/6b6908cbe3623830d7bb to your computer and use it in GitHub Desktop.
Save KPCCoiL/6b6908cbe3623830d7bb to your computer and use it in GitHub Desktop.
#!/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