#!/bin/bash

num1=`find . -type f | wc -l`
num2=`find . -type d | wc -l`

num3=`expr $num1 + $num2`

echo $num3

리눅스 셸스크립트 연산 (expr, 역슬래쉬) 방법