How can I remove all the <a href links from text file?
Quote:
The finale result I am looking for is Quote:
|
Something like that?
Code:
echo '<a class=link target=_parent href=www.google.com>Google</a> <a class=link target=_parent href=http://www.yahoo.com>Yahoo</a> <a class=link target=_parent href=http://www.live.com>Live</a> ' | sed -r 's/<a class=link target=_parent href=[^>]+>//g;s/<\/a>//g' Cheers, Tink |
It works.. cool. Thx.
|
All times are GMT -5. The time now is 11:06 PM. |