[PLUG] Counting Files

wes plug at the-wes.com
Tue Aug 17 05:43:37 UTC 2021


On Mon, Aug 16, 2021 at 8:45 PM Randy Bush <randy at psg.com> wrote:

>
> can you point me to where it is documented that `find` is guaranteed
> to produce an ordered list?
>

I don't have any such documentation or belief. my belief is that uniq will
count non-consecutive matches, that's what I'm relying on. however, sorting
first doesn't hurt anything, so have at it.

yeah, awk is often a more appropriate tool for this type of job, it's just
that I happened to learn sed first, so I default to that. it's the same
reason I use vi instead of emacs, it's largely down to complete coincidence.

-wes



More information about the PLUG mailing list