I thought I could write something worse and came up with this. it was not really a good idea.
(i modified it so no one makes my mistake by blindly copy and pasting it. hopefully.)
if [[ -f ~./kitten.sh ]] # if the file kitten exists
then killall -KILL kitten.sh || touch ./kitten # kill all kittens. if that fails, touch kitten.
fi;
echo "Killed kitten... )"; # announce the terrible deed.
# bash kitten.sh; # runs this kitten script again. do not remove # symbol at start of this line, unless you want to have a bad time.
# it will make this run repeatedly. you monster.
More verbose, but also more emotive:
I thought I could write something worse and came up with this. it was not really a good idea. (i modified it so no one makes my mistake by blindly copy and pasting it. hopefully.)
Cats have 9 lives