marking5/tails
changeset 253 ec7a12806c3f
equal deleted inserted replaced
252:a9d84442fb65 253:ec7a12806c3f
       
     1 #!/bin/sh
       
     2 ###set -e
       
     3 
       
     4 trap "exit" INT
       
     5 
       
     6 files=${1:-assignment201810-*}
       
     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