[rescue] nudge needed - text mangling advice

Brian Dunbar Brian.Dunbar at plexus.com
Thu Nov 13 01:53:57 CST 2003


It's late, I'm tired and I've hit a mental wall.  Someone shove me over the
edge?

I've got a text file so;

<snip>
biz.yahoo.com/p/t/tmas.ob.html">TIMCO
biz.yahoo.com/p/t/tgi.html">Triumph
biz.yahoo.com/p/u/udi.html">United
biz.yahoo.com/p/u/uic.html">United
<snip>

What I need is to wack all the text from ' " ' to the end of the line.  The
result would look like

<snip>
biz.yahoo.com/p/t/tmas.ob.html
biz.yahoo.com/p/t/tgi.html
biz.yahoo.com/p/u/udi.html
biz.yahoo.com/p/u/uic.html
<snip>

sed _should_ handle this but I'm having issues (I think) getting sed to like
the ' " ' character.

What I _want_ to be able to do is to then feed the cleaned up URLs to wget
and snag the business data (mostly contact info plus etc info on the page). 

Thanks in advance


Brian Dunbar
System Administrator
----------
Display some adaptability
----------



More information about the rescue mailing list