Thank you for the response. I have experimented with the quotes and it still isn't working properly. It seems to be having trouble with the use of $file in conjunction with bc.
I am fairly new to unix scripts, so forgive me if I'm missing something obvious.