Old stuff/ecole_etude_fac_de_pau/licence_2/ise/exo1.sh
(Deskargatu)#!/bin/bash
a=$1
b=$2
c=$3
if test $# -lt "3"
then
echo "5";
exit;
fi
if test "$a" == "$b"
then
if test "$a" == "$c"
then
echo "0";
else
if test "$b" == "$c"
then
echo "1";
else
echo "4";
fi
fi
else
if test $a == $c
then
echo "2"
else
if test $b == $c
then
echo "1"
else
echo "4"
fi
fi
fi