source:
vbox/trunk/src/libs/libtpms-0.9.0/tests/common@
97642
Last change on this file since 97642 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.