help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: config problems and bisecting an org-mode configuration file


From: Emanuel Berg
Subject: Re: config problems and bisecting an org-mode configuration file
Date: Wed, 07 Jun 2017 03:07:47 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Emanuel Berg wrote:

> Try this in your config dir
>
>    for f in *.el; do wc -l $f; done | sort -n
> -r
>
> What are your top results?

Here is a more neat shell function with AWK
that'll compute the mean value

    elisp-mean () {
        for f in *.el; do
            wc -l $f
        done | awk '{ sum += $1 } END { print int(sum/NR) + 1 }'
    }

After attempting to get it to work for an
embarrassingly long time, now I now mine is 55!

:)

-- 
underground experts united
http://user.it.uu.se/~embe8573




reply via email to

[Prev in Thread] Current Thread [Next in Thread]