Small change to wc

Václav Haisman v.haisman at sh.cvut.cz
Tue Dec 16 23:06:30 PST 2008


Sheldon Givens wrote, On 5.12.2008 23:14:
> 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
> 
> My apologies if this is in the wrong format. I don't often post here.
> 
> Happy Holidays,
> 
> Sheldon Givens
>[...]
You can install sysutils/coreutils and use its gwc executable.

--
VH

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 219 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20081217/309babb3/signature.pgp


More information about the freebsd-hackers mailing list