Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
  • upload-only-feedback
2 results

fudist.sh

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    fudist.sh 364 B
    #! /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" {} \;