in reply to using the stat function
does that work? I don't think there's 1000 bytes in a KB though, but I can't remember the exact number.if ($stat[7] <1000) { print "$stat[7] bytes" } else{ print $stat[7]/1000 ." KB" }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: using the stat function (data unit sizes)
by atcroft (Abbot) on Jun 12, 2002 at 13:08 UTC | |
|
Re: Re: using the stat function
by Anonymous Monk on Jun 12, 2002 at 14:09 UTC |