• tal
    link
    fedilink
    English
    arrow-up
    12
    arrow-down
    3
    ·
    2 days ago

    More verbose, but also more emotive:

    $ killall -KILL kitten
    
    • lattrommi@lemmy.ml
      link
      fedilink
      English
      arrow-up
      5
      ·
      2 days ago

      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.