sh check file size

How to check single file size with sh?

I'm writing script for burning cds/dvds
I want to check if iso image fits cd/dvd

is there any command for doing something like this?
[i know i can use awk..., (which i also don't know how to use without hours of experiments. lol)]
 
try "Human-readable":

ls -lah somefile | awk '{print $5}'

Code:
(21:51)-[Darwin@home ~]% ls -lah somefile | awk '{print $5}'
3,2M
 
Back
Top