marking3/tails
changeset 293 f4f2227ac957
parent 292 a52987bf44e1
child 294 7a945c3b86c7
equal deleted inserted replaced
292:a52987bf44e1 293:f4f2227ac957
     1 #!/bin/sh
       
     2 ###set -e
       
     3 
       
     4 trap "exit" INT
       
     5 
       
     6 files=${1:-assignment20188-*}
       
     7 
       
     8 for sd in $files; do
       
     9   cd $sd
       
    10   #echo $sd
       
    11   marksone=$(( `tail -1 output` ))
       
    12   markstwo=$(( `tail -1 output1` ))
       
    13   if [ "$marksone" != "$markstwo" ]; then
       
    14       echo $sd + "is different"
       
    15   fi
       
    16   cd ..
       
    17 done
       
    18 
       
    19