add syllabus script to get syllabus for any course at LU

This commit is contained in:
Pim Nelissen
2024-09-21 13:00:49 +02:00
parent c43281bd36
commit a2994b7c79

13
scripts/get_syllabus Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
BASE_URL="http://kursplaner.lu.se/pdf/kurs/en/"
# Check if a string was provided as an argument
if [ -z "$1" ]; then
echo "Usage: $0 <string>"
exit 1
fi
FULL_URL="${BASE_URL}$1"
xdg-open "$FULL_URL" &