diff options
-rwxr-xr-x | makecolumns.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/makecolumns.sh b/makecolumns.sh index b73dffe..b15a2dd 100755 --- a/makecolumns.sh +++ b/makecolumns.sh | |||
@@ -82,7 +82,10 @@ do_processfile_version_3() { | |||
82 | } | 82 | } |
83 | 83 | ||
84 | size() { | 84 | size() { |
85 | stat -f %z `printf %0${filename_len}d "$1"` | 85 | case `uname -s` in |
86 | *BSD|Darwin) stat -f %z `printf %0${filename_len}d "$1"`;; | ||
87 | *) stat -c %s `printf %0${filename_len}d "$1"`;; | ||
88 | esac | ||
86 | } | 89 | } |
87 | 90 | ||
88 | get_dword() { | 91 | get_dword() { |