Skip to content
Snippets Groups Projects
Commit ed670e16 authored by koenigl's avatar koenigl
Browse files

Merge branch 'main' into 'main'

Added script to distribute files into submissions

See merge request tutorierende/tutorscripts!2
parents 0a8a4a0f 3f47fd7b
Branches master
No related tags found
No related merge requests found
#! /bin/sh
if [ $# -lt 1 ] || [ ! -f 'grades.csv' ]; then
printf 'Usage: %s [FILE]...\n' "$(basename $0)" >&2
printf 'Supply file(s) to be distributed into the respective Submission attachment(s)\n' >&2
printf "Execute within the directory containing 'grades.csv'\n" >&2
exit 1
fi
files=$@
find \
-name 'Submission attachment(s)' \
-exec cp "$files" {} \;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment