wc -c < foo
Thanks Anonymous, that works great!
stat -c%s foo
wc will cause the entire file to be read from disk, so it's better to use stat. That way it'll take the same amount of time no matter how big the log file is :-)
Post a Comment
Rants, raves, comments and tips about computer hardware and software -- from a software developer's point of view.
4 comments:
wc -c < foo
Thanks Anonymous, that works great!
stat -c%s foo
wc will cause the entire file to be read from disk, so it's better to use stat. That way it'll take the same amount of time no matter how big the log file is :-)
Post a Comment