Skip to content
Snippets Groups Projects
Commit 3f47fd7b authored by bkessler's avatar bkessler
Browse files

Added script to distribute files into submissions

parent 0a8a4a0f
No related branches found
No related tags found
1 merge request!2Added script to distribute files into submissions
#! /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