From f091d4e815518104ffe4101937cc56430734c4a4 Mon Sep 17 00:00:00 2001 From: Ostap Date: Sun, 6 Feb 2022 02:31:23 +0200 Subject: [PATCH] solve ex01 --- ex01/hello_world.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ex01/hello_world.sh diff --git a/ex01/hello_world.sh b/ex01/hello_world.sh new file mode 100644 index 0000000..bd261a5 --- /dev/null +++ b/ex01/hello_world.sh @@ -0,0 +1,13 @@ +#! /bin/bash + +function hello_world() { + name="World" + if [ "$1" ] + then + name="$1" + fi + + echo "Hello, $name!" +} + +hello_world $1