#!/bin/bash a=`find | tail -n+2 | grep -c ".txt"` b=`find | tail -n+2 | grep -c ""` echo $a / $b