zaut-2019/show-solutions.sh
2018-12-07 21:09:51 +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