On 2/14/07, John H. Robinson, IV <[EMAIL PROTECTED]> wrote:
John H. Robinson, IV wrote:
>
> ls --size --block-size=1 $1 | cut -d" " -f1
ls --size --block-size=1 $1 | cut --delimiter=" " --fields=1
> will return the filesize, in bytes.
>
> As a general note, I tend to recommend using the long options in
> scripts. It helps in documentation.
How about using a program that can be told to show only file size. stat(1)
stat --format=%s filename
carl
--
carl lowenstein marine physical lab u.c. san diego
[EMAIL PROTECTED]
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list