use tr instead batch of sed commands

This commit is contained in:
6543 2021-10-13 15:02:33 +00:00
parent d2d4ad0c27
commit 69d638fffd

7
1337
View File

@ -2,12 +2,7 @@

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' | \
tr 'letaos' '137405' | \
sed 's/and\ /\&\ /g'
}