#!/bin/sh

if [ "$1" == "" ]
then
	echo "ERROR: please provide a handin folder to close!"
	echo ""
	exit
fi

dir="$1"

cat "$2" | 
while read id
 do
  fs sa /afs/andrew/course/15/123/handin/$dir/$id $id none
  #fs sa afs/andrew/course/15/123/handin/$dir/$id system:anyuser none
 done
