Updated mimimi
This commit is contained in:
parent
71140cee75
commit
0fa95f8eac
1 changed files with 22 additions and 3 deletions
25
mimimi.sh
25
mimimi.sh
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue