[Discuss] Command line question
Steven Kurylo
sk at infinitepigeons.org
Thu Jul 27 08:12:28 PDT 2006
> for each student in repository
> if a3 folder exists in students module
> copy/export a3 contents only to current directory
> else
> could not find assignment 3 so add to list
> of ones to check out manually
Assuming the directory structure from above something like this would work.
for userdir in `ls ~temp`;do
result=`find $userdir -type d -maxdepth 2 -name a3`
if [ -d $result ]; then
cvs export or cp command here
else
echo $userdir did not have an a3 directory
fi
done
--
Steven Kurylo
More information about the Discuss
mailing list