#!/bin/sh
for file in `ls`
do
if [ -f $file ]
then
echo "$file is regular file"
elif [ -d $file ]
then
echo "$file is dir file"
elif [ -L $file ]
then
echo "$file is link file"
else
echo "$file is other file"
fi
done
exit 0
#!/bin/sh
for file in `ls`
do
if [ -f $file ]
then
echo "$file is regular file"
elif [ -d $file ]
then
echo "$file is dir file"
elif [ -L $file ]
then
echo "$file is link file"
else
echo "$file is other file"
fi
done
exit 0