Use tr instead batch of sed commands #1

Merged
6543 merged 1 commits from suggestion-jtpg into master 2021-10-14 06:10:53 +00:00
Showing only changes of commit 69d638fffd - Show all commits

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'
}