Updated mimimi

This commit is contained in:
Klaus-Uwe Mitterer 2014-07-21 23:28:57 +02:00
parent 71140cee75
commit 0fa95f8eac

View file

@ -1,6 +1,21 @@
#!/bin/bash
i=0;
usage ()
{
echo 'mimimi by Klaus-Uwe Mitterer';
echo 'Usage: mimimi [-e]';
echo 'Options:';
echo '-e - Exponential';
exit;
}
i=1;
if [ $# -gt 0 ]
then if [ $1 != "-e" -o $# -gt 1 ]
then usage;
fi;
fi;
while true;
@ -9,6 +24,10 @@ while true;
done;
printf '\n';
i=$((i+1));
done
if [[ $1 = -e ]]
then i=$((i*2))
else i=$((i+1))
fi
done;