From 8d5d5d97e6c9f575891c22f80699a51778c669d6 Mon Sep 17 00:00:00 2001 From: olezhokmer2002 Date: Sun, 3 Oct 2021 23:08:35 +0300 Subject: [PATCH 1/2] first task --- ex01/hello_world.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 ex01/hello_world.sh diff --git a/ex01/hello_world.sh b/ex01/hello_world.sh new file mode 100755 index 0000000..462292e --- /dev/null +++ b/ex01/hello_world.sh @@ -0,0 +1,6 @@ +if [ -x $1 ] +then + echo Hello, World! +else + echo Hello, $1! +fi From c449f698c47edc9d6850e4d746e1b7dbf9586cf5 Mon Sep 17 00:00:00 2001 From: olezhokmer2002 Date: Sun, 3 Oct 2021 23:32:05 +0300 Subject: [PATCH 2/2] second task --- ex02/ex02.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 ex02/ex02.sh diff --git a/ex02/ex02.sh b/ex02/ex02.sh new file mode 100755 index 0000000..03b1ec7 --- /dev/null +++ b/ex02/ex02.sh @@ -0,0 +1,7 @@ +for i in $* +do + ls -R | grep -Fi $i || echo 'the searched PATH is unexisting' +done + + +