Entao não era bem oq voce queria, o que voce pediu.

Teste isso:
[EMAIL PROTECTED]:~$ echo "isso aqui eh um teste. teste1={MMM} teste2={KKK}"
| egrep -o '\ [[:alnum:]]+=.*\ '
 teste1={MMM}

Voce vai ter que fazer uma regex pro egrep -o te dar oque quer... a que eu
fiz é horrivel, mas tae a ideia.


Sorte,

Flavio do Carmo Junior

On 11/27/06, Rodrigo Monteiro <[EMAIL PROTECTED]> wrote:
>
>   Hummm... nao deu muito certo nao! :(
>
> # echo "isso aqui eh um teste. teste1={MMM} teste2={KKK}" | grep -o "MM"
> MM
> # echo "isso aqui eh um teste. teste1={MMM} teste2={KKK}" | grep -o "MMM"
> MMM
> #
>
> Era para retornar teste1={MMM} em ambos os casos.
> Algo de errado?
>
> []s
>
> On 11/27/06, Rodrigo Monteiro <[EMAIL PROTECTED] <mrodrigox%40gmail.com>>
> wrote:
> > Putz... e olha que eu ainda olhei o man do grep...
> > Sorry =)
> >
> > On 11/27/06, Flavio Junior <[EMAIL PROTECTED] <billpp%40gmail.com>>
> wrote:
> > >
> > >
> > > arghh
> > >
> > > [EMAIL PROTECTED]:~$ grep --help | grep \\-o
> > > -b, --byte-offset print the byte offset with output lines
> > > -o, --only-matching show only the part of a line matching PATTERN
> > > -u, --unix-byte-offsets report offsets as if CRs were not there
> (MSDOS)
> > > [EMAIL PROTECTED]:~$
> > >
> >
> >
> >
> > --
> > Rodrigo Monteiro
> > "Free as in Freedom, not free as in free beer"
> > Linux User # 403730
> > JID: [EMAIL PROTECTED] <mrodrigom%40jabber.org>
> > [EMAIL PROTECTED] <mrodrigox%40gmail.com>
> >
>
> --
> Rodrigo Monteiro
> "Free as in Freedom, not free as in free beer"
> Linux User # 403730
> JID: [EMAIL PROTECTED] <mrodrigom%40jabber.org>
> [EMAIL PROTECTED] <mrodrigox%40gmail.com>
>  
>


[As partes desta mensagem que não continham texto foram removidas]

Responder a