Small change to wc

Giorgos Keramidas keramida at ceid.upatras.gr
Fri Dec 5 16:17:13 PST 2008


On Fri, 5 Dec 2008 14:14:32 -0800, "Sheldon Givens" <sheldon at sigsegv.ca> wrote:
> Hello everyone,
> In the process of migrating the last of a few Linux servers to
> FreeBSD, we ran in to a bit of a snag with one of our scripts when BSD
> wc didn't have an equivalent to the Linux -L. This flag tells wc to
> keep track of the longest line in the input.
>
> Here's a little diff to add this functionality to BSD wc.
>
> With this patch, an additional parameter is added to output that shows
> the length of the longest line

Adding the option to increase finger-compatibility and make shell
scripts a bit easier to port over sounds fine by me :)

> My apologies if this is in the wrong format. I don't often post here.
> ---snip---
> [patch]
> ---unsnip---

Can you post a `diff -u' or `diff -c' version of the patch?  I like the
idea of the new option but it would be easier to read in -u/-c format.


More information about the freebsd-hackers mailing list