log rotate can be made to do this for you, along with compressing and archiving old logs - I couldn't find the "offical" site as I got mine from gentoo but -
http://www.linuxconfig.org/logrotate explains it.
Or are you doing this to learn? If so then I'm afraid all I know is
will give you the size of the file (Normally in Kb I think but it can be changed, for example `du -h` gives you a nice human readable size).
(This is my first helpful post, Hope its ok!).