Portable way to get file size (in bytes) in shell?
| 
 up vote 3 down vote favorite share [g+]  | 
 On Linux, I use  I'm writing Bash scripts, and can't really install any new software on the system. I've considered already using: 
or even: 
But neither of these looks sensible - running Perl just to get file size? Or running 2 commands to do the same?  |