Wednesday, December 20, 2006

Just the File Size Please

This story has moved to NerdBoys.com. Please read this story at its new location.

4 comments:

Anonymous said...

wc -c < foo

Joe said...

Thanks Anonymous, that works great!

Anonymous said...

stat -c%s foo

Norman Rasmussen said...

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 :-)