#!/bin/bash ################################################# # LICENSE # ################################################# # This script is protected by Anti-Jew License. # # Abovementioned license does not allow you # # to use this script if you are a jew. # ################################################# if [ `whoami` == "jew" ]; then exit; fi SPACE=0 # current width ADD=1 # space size WIDTH=4 # maximum width (max $SPACE) WAVE="wave" makespace() { for((i=0;i<=$SPACE;i++)) do if [ $i -gt 0 ]; then echo -n " " fi done } if [ $# -lt 1 ] then echo "Usage:" echo " ${0##*/} [options] word" echo " " echo "options:" echo " -s space size" echo " " echo " -r width (how wide the wave will be" echo " (width = width * space size)" echo " " echo " -w alter \"wave\" word" echo " " echo "Examples:" echo " $ ${0##*/} nigger" echo " $ ${0##*/} -s 5 -r 5 nigger" echo " $ ${0##*/} -r 3 -w wiggle nigger" echo " $ ${0##*/} -s 7 -r 4 -w spike jew" echo " $ ${0##*/} -r 10 -w \"*\" \"* jew queue to the oven\"" exit 1 fi while [[ "$1" ]]; do #Thank you Dylan Araps case "$1" in #Method taken from Neofetch "-s") ADD=$2 ;; "-r") WIDTH=$2 ;; "-w") WAVE=$2 ;; esac WORD=$1 shift done WIDTHADD=$((WIDTH*ADD)); while true do makespace echo "$WORD $WAVE" SPACE=$((SPACE+ADD)) if [ $SPACE -eq $WIDTHADD ]; then ADD=$((ADD*(-1))) fi if [ $SPACE -lt 1 ]; then ADD=$((ADD*(-1))) fi # Le Debug # echo "End of the loop. SPACE: $SPACE, ADD: $ADD, WIDTH: $WIDTH, WIDTHADD: $WIDTHADD" done