#!/bin/bash
a=0
b=0
for i in $(ls ~)
do
if test -d ~/$i
then
((a++))
elif test -f ~/$i
then
((b++))
fi
done
echo $a
echo $b
#!/bin/bash
a=0
b=0
for i in $(ls ~)
do
if test -d ~/$i
then
((a++))
elif test -f ~/$i
then
((b++))
fi
done
echo $a
echo $b