Skip to content

Instantly share code, notes, and snippets.

@khlj
Created April 21, 2017 02:39
Show Gist options
  • Save khlj/045c523501b3c26e38fd605d821bb0bd to your computer and use it in GitHub Desktop.
Save khlj/045c523501b3c26e38fd605d821bb0bd to your computer and use it in GitHub Desktop.
#!/bin/bash
# edit line 7 - Main to corresponding class name
# edit line 11 - incorrect to corresponding fail message. The printing of incorrect should be implemented from java source
COUNTER=0
while [ $COUNTER -lt 1000 ]; do
java Main >> output.txt
let COUNTER=COUNTER+1
done
cat output.txt | grep incorrect
rm output.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment