-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathmap.sh
More file actions
9 lines (7 loc) · 671 Bytes
/
map.sh
File metadata and controls
9 lines (7 loc) · 671 Bytes
1
2
3
4
5
6
7
8
9
# http://www.pythonchallenge.com/pc/def/map.html
s="g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc dmp. bmgle gr gl zw fylb gq glcddgagclr ylb rfyr'q ufw rfgq rcvr gq qm jmle. sqgle qrpgle.kyicrpylq() gq pcamkkclbcb. lmu ynnjw ml rfc spj."
echo $s | tr "a-z" "c-zab" # curl http://www.pythonchallenge.com/pc/def/map.html | tr a-z c-za-b is also ok
# i hope you didnt translate it by hand. thats what computers are for. doing it in by hand is inefficient and that's why this text is so long. using string.maketrans() is recommended. now apply on the url.
echo "map" | tr "a-z" "c-zab"
# ocr
# next level: http://www.pythonchallenge.com/pc/def/ocr.html