marking5/compare
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   cp output output1
       
    11   #cmp -s output output1 > /dev/null
       
    12   #if [ $? -eq 1 ]; then
       
    13   #    echo $sd + "is different"
       
    14   #fi
       
    15   cd ..
       
    16 done
       
    17 
       
    18