changeset 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 904a40e1f8b2
children 9724876acaa2
files bin/hello-world-in-any-language
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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