Re: quick scripting question - finding occurrence in many lines
On Tue, Nov 07, 2006 at 01:00:34AM +1100, John O'Hagan wrote:
> 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.
>
But what if the preceding 'word' is literally "----" ;-)?
--
Paul E Condon
pecondon@mesanetworks.net
Reply to: