Get the size of an individual file in Bash


On MacOSX:

stat -f%z filename.ext

On Linux:

stat -c%s filename.ext

Tags:  bash

Share: