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 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 + + +