Hi,
Try this script (this is to count the number of "c" character in a file, you can change it easy for your character:
numcar=`sed -e 's/[a-b]//g' -e 's/[d-z]//g' filename |wc -c `
numlin=`cat filename | wc -l `
integer numcarok
(( numcarok = numcar - numlin ))
echo $numcarok
Hope this help,
Justo.
Help is a Beatiful word