I'm teaching a class where (~80) students are submitting assignments that I can access via webdav, organized by student in directories named by their unique identifier.
The students are split into two groups that submit assignments on different days of the week. I'd like to create a bash script to automatically download files for each subset of students into a local directory.
What I don't know how to do is the following:
- Select a specific subset of folders by name to copy files from.
- Edited based on comments: The webdav server I connect to has 80 directories named by student, these 80 directories are made up of two groups of students.
- I would like to select files from directories in each group, i.e., Group1 contains directories
StudentA/ StudentC/ StudentD/
. Group 2 would contain the directoriesStudentB/ StudentE/ StudentF/
.
- Specify the beginning date/time of files to be copied. End date/time would be useful to since I take deductions for late assignments.
Any help on either of these would be appreciated.