esempio:

#!/bin/bash
A= stat -c %s /percorso-a-mio-file
echo $A




p.s.

http://www.pluto.it/files/ildp/guide/abs/index.html