I'll just change this:
let "NUM=$(fgrep -c "$DEVICE_NAMES" $1 )" into this let "NUM=$(grep -F "$DEVICE_NAMES" $1 | grep -c "lammi87" )"It gave me 728. I'd say it is sufficient enough. I'll just have to point out that the figures I get with my scripts are not 100% accurate but accurate enough.
Thanks for your help! You helped a lot!
