[rescue] nudge needed - text mangling advice

Phil Stracchino alaric at caerllewys.net
Thu Nov 13 10:21:29 CST 2003


On Thu, Nov 13, 2003 at 01:53:57AM -0600, Brian Dunbar wrote:
> 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.


cat foo | cut -d\" -f1 | xargs wget ....



-- 
 .*********  Fight Back!  It may not be just YOUR life at risk.  *********.
 : phil stracchino : unix ronin : renaissance man : mystic zen biker geek :
 :  alaric at caerllewys.net : alaric-ruthven at earthlink.net : phil at latt.net  :
 :   2000 CBR929RR, 1991 VFR750F3 (foully murdered), 1986 VF500F (sold)   :
 :    Linux Now!   ...Because friends don't let friends use Microsoft.    :



More information about the rescue mailing list