I am not sure if i am on the right path or not, what i have so far is
#!/bin/sh
for filename in $*
do
if [ -d $filename ]
then
echo "some_text"
ls $filename
else
more $filename
fi
done
But it takes me to the next prompt, no output OR warnings
I am not sure if i am on the right path or not, what i have so far is
#!/bin/sh
for filename in $*
do
if [ -d $filename ]
then
echo "some_text"
ls $filename
else
more $filename
fi
done
But it takes me to the next prompt, no output OR warnings