On Jun 18, 2000, Assar Westerlund <[EMAIL PROTECTED]> wrote:

> Alexandre Oliva <[EMAIL PROTECTED]> writes:
>> This might work:
>> 
>> awk '{len+=length()+1;} END {print len;}' < filename

> Are you sure there's not a stupid awk that has some limit for the
> length of a line and will truncate it? :-(

Nope :-(

In fact, I had considered this possibility, but reasoned that, if awk
fails, it would fail identically for identical files, and we'd get the
same result.  But I had failed to consider the case of different files
giving the same results :-(

-- 
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

Reply via email to