You are on page 1of 1

#!

/bin/bash

#Autor:Ema Ilijic
#Descripcion:third exercise

for i in "${@}"
do
if [ ! -z `ls . | grep "${i}"` ]
then
echo "The content of ${i} directory is::
ls ./"${i}"
else
echo "The directory ${i} doesn't exist"
fi
done

You might also like