Mercurial > repo
diff bin/hello-world-in-any-language @ 6868:766a281f3856
<Elronnd> ` echo \'if [ -z $(tr [A-Z] [a-z] <<< "$1") ]; then echo "Hello, world!"; else if [ -f hw/$(tr [A-Z] [a-z] <<< "$1") ]; then cat hw/$(tr [A-Z] [a-z] <<< "$1"); else echo "Your language does not exist"; fi; fi\' > bin/hello-world-in-any-language
author | HackBot |
---|---|
date | Mon, 15 Feb 2016 02:13:49 +0000 |
parents | ecb520c9d0c7 |
children |
line wrap: on
line diff
--- a/bin/hello-world-in-any-language Mon Feb 15 02:09:04 2016 +0000 +++ b/bin/hello-world-in-any-language Mon Feb 15 02:13:49 2016 +0000 @@ -1,1 +1,1 @@ -if [ -z $1 ]; then echo "Hello, world!"; else if [ -f hw/$1 ]; then cat hw/$1; else echo "Your language does not exist"; fi; fi +if [ -z $(tr [A-Z] [a-z] <<< "$1") ]; then echo "Hello, world!"; else if [ -f hw/$(tr [A-Z] [a-z] <<< "$1") ]; then cat hw/$(tr [A-Z] [a-z] <<< "$1"); else echo "Your language does not exist"; fi; fi