source:
vbox/trunk/src/libs/libtpms-0.9.6/tests/common@
99553
Last change on this file since 99553 was 91612, checked in by , 3 years ago | |
---|---|
File size: 184 bytes |
Line | |
---|---|
1 | |
2 | # Get the size of a file in bytes |
3 | # |
4 | # @1: filename |
5 | function get_filesize() |
6 | { |
7 | if [[ "$(uname -s)" =~ (Linux|CYGWIN_NT-) ]]; then |
8 | stat -c%s $1 |
9 | else |
10 | # OpenBSD |
11 | stat -f%z $1 |
12 | fi |
13 | } |
Note:
See TracBrowser
for help on using the repository browser.