Created
February 12, 2018 21:29
-
-
Save benwaffle/7ad507912b32a278b43b7c6c78b5bf37 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
tests=$(cat testcases.txt) | |
tests=${tests//$'\n'$'\n'/$'\t'} | |
IFS=$'\t' | |
result=( $tests ) | |
cnt=0 | |
for x in ${result[@]}; do | |
((cnt++)) | |
echo $x | ./contacts > test$cnt.out | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment