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

Re: counting commas



Greg Wooledge <greg@wooledge.org> wrote:

> I won, and you lost

There shouldn't be a comma in that sentence, in English. There is in
the closely related expression "I won, you lost."

> I really don't think I'd try this with shell scripts.  The tools just
> aren't designed for this.  You really want tools that are custom built
> for natural language processing, or a language that lets you run
> through a large string character by character in a fast, efficient
> way (C comes to mind) if you're trying to build your tools from the
> ground up.

At the risk of being seen as old-fashioned, but as a user of both
languages, I think Perl is a much better choice than C for string
processing. But whatever the OP knows is likely the best choice in the
short term.


Reply to: