Hi Ed
Your are right, I should have written "Should it be EXACTLY this:" :)
And another goal for you. , the format have a space!, was my mistake:
#cat file
I went fishing for some sea <bass> .
The <bass> part of the song is very moving .
he proposed an elaborate <program> of public works . This information
was taken from the magazine .
the <program> required several hundred lines of code .
Best Regards,
-ric
On Apr 7, 4:14=A0pm, Ed Morton <mor...@[EMAIL PROTECTED]
> wrote:
> On 4/7/2008 12:01 PM, ric wrote:
>
>
>
>
>
> > Hi People:
>
> > Could anybody tell me how can I do this with awk or bash shell?
> > I've a file with this systaxis:
>
> > #cat file
> > I went fishing for some sea <bass>.
> > The <bass> part of the song is very moving.
>
> > he proposed an elaborate <program> of public works.This information
> > was taken from the magazine.
> > the <program> required several hundred lines of code.
>
> > I need a script that gets 3 previus words and 3 words after the
> > tag(<>) from a text file,EXCEPT the words greater than
> > 2 chars length(example of,a,an).
>
> > Returning something like this:
>
> > #----------------------------------
> > for some sea bass
> > The bass part the song
> > proprosed elaborate program public works
> > the program required several hundred
>
> "something like" is kinda vague. Should it be EXACTLY this:
>
> -----------
> for some sea bass
> The bass part the song
> proposed elaborate program public works.This information
> the program required several hundred
> ----------
>
> Note in particular the interpretation of "works.This" as one "word"
since =
it
> contains no spaces. If you want to use something other than spaces as
"wor=
d"
> delimitters, you'll have to tell us what the delimitters are or some
other=
way
> to recognise a "word".
>
> Regards,
>
> =A0 =A0 =A0 =A0 Ed.- Hide quoted text -
>
> - Show quoted text -


|