[ale] simple sed problem ?

Christopher Bergeron christopher at bergeron.com
Wed Oct 31 09:38:09 EST 2001








<span style='font-size:10.0pt;
font-family:Arial'>I’m trying to use this sed <span
class=SpellE>verbage:

<span style='font-size:10.0pt;
font-family:Arial'> 

<font size=2
face=Arial>sed<font
size=2 face=Arial> -n ‘ /
p x \ ” > / , / < \ / a > / p /tmp/cnn.tmp<span
style='mso-spacerun:yes'>    (spaces added for clarity)

<span style='font-size:10.0pt;
font-family:Arial'> 

<span
style='font-size:10.0pt;font-family:Arial'>the<font
size=2 face=Arial> file <span
class=SpellE>cnn.tmp contains:

<span style='font-size:10.0pt;
font-family:Arial'> 

<span style='font-size:10.0pt;
font-family:Arial'><div class="cnnMainT1Headline"><a <span
class=SpellE>href="/2001/HEALTH/conditions/10/31/anthrax/index.html"
style="font-size:24px">NYC woman
dies</a></div>

<span style='font-size:10.0pt;
font-family:Arial'> 

<span style='font-size:10.0pt;
font-family:Arial'> 

<span style='font-size:10.0pt;
font-family:Arial'>I’m basically trying to rip out the headline for use
with xmessage: 
“NYC woman dies”

<span style='font-size:10.0pt;
font-family:Arial'> 

<span style='font-size:10.0pt;
font-family:Arial'>I’m getting the entire line as my output.<span
style='mso-spacerun:yes'>  Any suggestions?!?

<span style='font-size:10.0pt;
font-family:Arial'> 

<span style='font-size:10.0pt;
font-family:Arial'>These days, I’d like to stay much more abreast about
the news… ugh.

<span style='font-size:10.0pt;
font-family:Arial'> 

<span
style='font-size:10.0pt;font-family:Arial'>TIAdv<font
size=2 face=Arial>,

<span style='font-size:10.0pt;
font-family:Arial'>CB










More information about the Ale mailing list