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" }
In reply to Re: using the stat function
by katgirl
in thread using the stat function
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |