configuration/local/bin/subgit-symlinks

15 lines
286 B
Bash
Executable File

#!/bin/sh
# lines of form:
# Givenname Last Name (student number) <email address>
LIST="${LIST:-/data/courses/students.list}"
while read line; do
name="${line% (*}"
number="${line%) *}"
number="${number#* (}"
if [ -e "$number" ]; then
ln -s "$number" "$name"
fi
done < "$LIST"