bash version

This commit is contained in:
6543 2021-01-05 01:34:31 +01:00
parent da01fda0bf
commit d2d4ad0c27
Signed by: 6543
GPG Key ID: C99B82E40B027BAE

19
1337 Executable file
View File

@ -0,0 +1,19 @@
#/bin/bash

function 1337() {
echo $@ | tr '[:upper:]' '[:lower:]' | \
sed 's/l/1/g' | \
sed 's/e/3/g' | \
sed 's/t/7/g' | \
sed 's/a/4/g' | \
sed 's/o/0/g' | \
sed 's/s/5/g' | \
sed 's/and\ /\&\ /g'
}

opt="$@"
[ -n "$opt" ] && 1337 "$opt" && exit

while read stdin; do
1337 "$stdin"
done