I have a folder structure like this
/Class/Student/Unit/files
Each Unit folder contains a file MarkSheet*
that I update when I mark a students work.
I need a script that tests if the student has uploaded files newer than when I last marked their work.
The following is as close as I have been able to get (which doesn't work).
#!/bin/sh
find . -mindepth 3 -maxdepth 3 -type d -name '*' -execdir \
find "{}" -type f -newer "{}"/MarkSheet* \;
Student
is variable and you want to do this for eachStudent
folder? Why are you settingmaxdepth
andmindepth
?