-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Denis S. Costa wrote:
> Boa noite a t...@s
>
> Tenho um arquivo mais ou menos assim
>
> <title>Today is the day</title> <description>Today is a good day to
>  scripting</description> <data>sun,25/12/2009</data>
>
> <title>hoje é um gramde dia</title>
>
> <description>Grande é com "N", e não com "M"</description>
>
> <data>sun,25/12/2009</data>
>
> tô editando em sed, e não consigo pegar a linha do title e a da
> data, que são as duas únicas linhas que me interesam. Ficaria assim
>  então:
>
> <title>Today is the day</title>
>
>
> <data>sun,25/12/2009</data>
>
>
> <title>hoje é um gramde dia</title>
>
>
>
>
> <data>sun,25/12/2009</data>
>
>

Olá,

Tente asssim>

sed -n '/<title>/p;/<data>/p'

[]'s


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrBHxMACgkQNRQApncg296k4wCePaUTVvGV0cwKgojqpC4epVTh
sYEAmwf8xxFEgFQNKQha9oaae4hX9XBT
=fa4X
-----END PGP SIGNATURE-----

Responder a