On Jun 18, 2000, Mo DeJong <[EMAIL PROTECTED]> wrote:
> 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.
This might work:
awk '{len+=length()+1;} END {print len;}' < filename
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
- Re: [gnu.utils.bug] AC_PROG_CC_G, et al, are not very rob... Thomas E. Dickey
- Re: [gnu.utils.bug] AC_PROG_CC_G, et al, are not very rob... Mo DeJong
- Re: [gnu.utils.bug] AC_PROG_CC_G, et al, are not very rob... Akim Demaille
- Re: [gnu.utils.bug] AC_PROG_CC_G, et al, are not very rob... Thomas E. Dickey
- Re: [gnu.utils.bug] AC_PROG_CC_G, et al, are not very rob... Mo DeJong
- Re: [gnu.utils.bug] AC_PROG_CC_G, et al, are not very rob... Alexandre Oliva
- Re: [gnu.utils.bug] AC_PROG_CC_G, et al, are not very rob... Mo DeJong
- Re: [gnu.utils.bug] AC_PROG_CC_G, et al, are not very rob... Alexandre Oliva
- Re: [gnu.utils.bug] AC_PROG_CC_G, et al, are not very rob... Alexandre Oliva
- Re: [gnu.utils.bug] AC_PROG_CC_G, et al, are not very rob... Mo DeJong
- Re: [gnu.utils.bug] AC_PROG_CC_G, et al, are not very rob... Alexandre Oliva
- Re: [gnu.utils.bug] AC_PROG_CC_G, et al, are not very rob... Assar Westerlund
- Re: [gnu.utils.bug] AC_PROG_CC_G, et al, are not very rob... Alexandre Oliva
- Re: [gnu.utils.bug] AC_PROG_CC_G, et al, are not very rob... Thomas Dickey
- Re: [gnu.utils.bug] AC_PROG_CC_G, et al, are not very rob... Paul Eggert
- Re: [gnu.utils.bug] AC_PROG_CC_G, et al, are not very rob... Thomas Dickey
- Re: [gnu.utils.bug] AC_PROG_CC_G, et al, are not very rob... Paul Eggert
- Re: [gnu.utils.bug] AC_PROG_CC_G, et al, are not very rob... Thomas Dickey
- Re: [gnu.utils.bug] AC_PROG_CC_G, et al, are not very rob... Akim Demaille
- Re: [gnu.utils.bug] AC_PROG_CC_G, et al, are not very rob... Thomas E. Dickey
- Re: [gnu.utils.bug] AC_PROG_CC_G, et al, are not very rob... Alexandre Oliva
