Re: seek within a large file
From: Paul Lutus (nospam_at_nosite.zzz)
Date: Fri, 17 Oct 2003 00:23:22 -0700
Alan Connor wrote:
< snip >
> So where did you get skip=1048576 then? How did you convert 1GB to that?
The prior poster didn't get 1048576 from either definition of "gigabyte":
2^20 = 1048576 (the old meaning of "megabyte", and see below), but
one gigabyte = either 10^9 (1,000,000,000) or 2^30 (1,073,741,824).
There are a bunch of ways to get these values in a script, based on
arbitrary input units.
$ units gigabyte
Definition: 1e9 byte = 8e+09 bit
$ units megabyte
Definition: 1e6 byte = 8000000 bit
These definitions changed only recently.
-- Paul Lutus http://www.arachnoid.com