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

Re: quick scripting question - finding occurrence in many lines



On Monday 06 November 2006 18:38, David Jardine wrote:
> On Mon, Nov 06, 2006 at 11:27:58AM +1100, John O'Hagan wrote:

[...]

> > E.g., if IN contains:
> >
> > junk info 18 Pro
>
> But what if that line were:
>
> junk info 18 Pro-
>
> which seems more likely?
>

[...]

You're right; but the OP, Michael, gave the above scenario as his problem. If 
your situation were the case, though, I guess we could use tr -d '-' to get 
rid of all the hyphens first as well.

Regards,

John



Reply to: