All pastes #2051940 Raw Edit

r0hit - leetify!

public shellscript v1 · immutable
#2051940 ·published 2011-04-29 16:19 UTC
rendered paste body
# 1337ifier script: 1337ifies input even via pipe# 1337 substitution characters from table in 1337 article on wikipedia# 29 Apr 2011# follow me : twitter.com/_r0hit# mail me   : stuntdawg [at] gmail.com#!/bin/bashif [ $# -ne 0 ]; then INPUT="$(echo "$@" | tr [:upper:] [:lower:] )"else read -p "Enter line of text : " INPUTfiLENGTH=${#INPUT}for (( i=1; i<=LENGTH; i++ )); do CHAR=$(echo $INPUT | cut -c $i) case $CHAR in  a) echo -n '4' ;;  b) echo -n '8' ;;  c) echo -n '(' ;;  d) echo -n '|)' ;;  e) echo -n '3' ;;  f) echo -n '|=' ;;  g) echo -n '6' ;;  h) echo -n '|-|' ;;  i) echo -n '!' ;;  j) echo -n '_|' ;;  k) echo -n 'X' ;;  l) echo -n '1' ;;  m) echo -n '/\/\' ;;  n) echo -n '|\|' ;;  o) echo -n '0' ;;  p) echo -n '|*' ;;  q) echo -n '0_' ;;  r) echo -n '|2' ;;  s) echo -n '5' ;;  t) echo -n '7' ;;  u) echo -n '|_|' ;;  v) echo -n '\/' ;;  w) echo -n '\/\/' ;;  x) echo -n '%' ;;  y) echo -n 'j' ;;  z) echo -n '2' ;;  *) echo -n "$CHAR" ;; esacdoneecho