Last active
November 3, 2016 20:58
-
-
Save Michcioperz/8b548b4942039b4fffec92702c788773 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/bash | |
g++ -o sol sol.cpp | |
# iterujemy nie na liczbach tylko na plikach których nazwy kończą się na .in | |
for i in *.in | |
do | |
echo $i | |
./sol < $i > wyj.out | |
# dzięki fajnym funkcjom konsoli linuksowej wycinamy .in z nazwy pliku i doklejamy .out | |
diff -w -q wyj.out ${i%.in}.out | |
[[ $? -ne 0 ]] && break | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment