mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
427 B
21 lines
427 B
#!/usr/bin/env bash |
|
|
|
# Unofficial Bash Strict Mode |
|
set -euo pipefail |
|
IFS=' |
|
' |
|
|
|
cd append-output |
|
# reset the files. |
|
if [ -f results.txt ]; then |
|
rm results.txt |
|
rm solution.txt |
|
fi |
|
|
|
# add the top two songs to the file as they are not asked. |
|
cat songs.txt | grep "Linkin" >>results.txt |
|
|
|
submitted=$(bash ../student/append-output.sh) |
|
expected=$(bash ../solutions/append-output.sh) |
|
|
|
diff <(cat results.txt) <(cat solution.txt)
|
|
|