zjfz-2019-s402281/show-solutions.sh
2020-01-11 17:39:10 +01:00

20 lines
285 B
Bash
Executable File

#!/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