Merge pull request 'Use tr instead batch of sed commands' (#1) from suggestion-jtpg into master

Reviewed-on: #1
This commit is contained in:
6543 2021-10-14 06:10:52 +00:00
commit 390895f18a

7
1337
View File

@ -2,12 +2,7 @@


function 1337() { function 1337() {
echo $@ | tr '[:upper:]' '[:lower:]' | \ echo $@ | tr '[:upper:]' '[:lower:]' | \
sed 's/l/1/g' | \ tr 'letaos' '137405' | \
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' sed 's/and\ /\&\ /g'
} }