From 69d638fffdd0bc72551c0d171f78b0112e60f141 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Wed, 13 Oct 2021 15:02:33 +0000 Subject: [PATCH] use `tr` instead batch of `sed` commands --- 1337 | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/1337 b/1337 index 5d6e2b2..490e520 100755 --- a/1337 +++ b/1337 @@ -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' } -- 2.46.2