diff --git a/ex02/ex02.sh b/ex02/ex02.sh new file mode 100644 index 0000000..2db078c --- /dev/null +++ b/ex02/ex02.sh @@ -0,0 +1,12 @@ +#! /bin/bash + +for file in $@; +do + path=$(ls -R ./ | egrep ${file}) + if [ -z "${path}" ] + then + echo "Path doesnot exist" + else + echo "${path}" + fi +done