On Sat, Jun 17, 2000 at 09:33:33PM -0700, Mo DeJong wrote:
> 
> This is really messy. Why is there no way to find the length
> of a file in bash? That is all we really want to do. If the

Bourne shell (e.g., /bin/sh), not bash.

> file gets bigger, then -g is supported. What about ls -S,
> is that portable?
no (not portable)
 
> Some folks have suggested compiling and running a C program
> to figure out the length of the file, but that would not
> help if I wanted to do a cross compile.
> 
> What if we used cmp, but wrote some null bytes over the first
> 16 bytes of each object file before we did the compare?

16 isn't enough to cover all headers

-- 
Thomas E. Dickey <[EMAIL PROTECTED]>
http://dickey.his.com
ftp://dickey.his.com

Reply via email to