marking1/compare
changeset 229 5549016ab10f
equal deleted inserted replaced
228:33c2655be47d 229:5549016ab10f
       
     1 #!/bin/sh
       
     2 ###set -e
       
     3 
       
     4 trap "exit" INT
       
     5 
       
     6 files=${1:-assignment20187-*}
       
     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