zjfz-2019/show-solutions.sh

20 lines
285 B
Bash
Raw Normal View History

2020-01-11 17:39:10 +01:00
#!/bin/zsh
PREFIX=$1
TASK=$2
for REPO in $PREFIX-s*
do
INDEX=${REPO#$PREFIX-s}
SOLUTION_FILE="${REPO}/${TASK}.py"
if [[ -r "$SOLUTION_FILE" ]]
then
echo "========================================"
echo "======== $INDEX ========================"
cat "$SOLUTION_FILE"
echo ""
fi
done