Small change to wc
Garrett Cooper
yanefbsd at gmail.com
Fri Dec 5 14:49:40 PST 2008
On Fri, Dec 5, 2008 at 2:48 PM, Garrett Cooper <yanefbsd at gmail.com> wrote:
> On Fri, Dec 5, 2008 at 2:14 PM, 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.
[..]
> What's the plus side of having this? I can accomplish the same with
> something like awk without the additional overhead, which would be
> guaranteed to be portable.
s/overhead/overhead to wc/.
> -Garrett
More information about the freebsd-hackers
mailing list