Does anybody know how i can remove string from <a> tag?
There are several hundred posts in a few forums that need to be cleaned up.
The precise situation is
----------
-------------
my goal is to end up with clean tag <a>.
is what never changes in the strings.
Your help is greatly appreciated.
Last edited by Scrutinizer; 04-27-2012 at 11:20 AM..
Reason: code tags
Hi All,
I have following example file
i want to remove all html tags only,
Input File:
<html>
<head>
<title>Software Solutions Inc., </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor=white leftmargin="0" topmargin="0"... (2 Replies)
I have a html file called myfile. If I simply put "cat myfile.html" in UNIX, it shows all the html tags like <a href=r/26><img src="http://www>. But I want to extract only text part.
Same problem happens in "type" command in MS-DOS.
I know you can do it by opening it in Internet Explorer,... (4 Replies)
I have umpteen number of files containing HTML A tags in the below format
or
I want to find all the lines that contain the word Login=
I used this command
grep "Login=" *
This gave me normal lines as well which contain the word Login= for example, it returned lines which... (2 Replies)
Could someone, please provide a solution to the following:
I would like to remove some tags from the "head" of multiple html documents across the web site. They look like
<link rel="alternate" type="application/rss+xml"
title="Business and Investment in the Philippines"... (2 Replies)
Hi
I am new to string extractions in shell script... I am trying to extract a string such as #1753 from html tag looks like below.
<a class="model-link tl-tr" href="lastSuccessfulBuild/">Last successful build (#1753), 40 min ago</a>
and want the value as
1753
Could someone help me to... (3 Replies)
I want to print from <fruits> to </fruits> tag which have <fruit> as mango. Also i want both <fruits> and </fruits> in output. Please help
eg.
<fruits>
<fruit id="111">mango<fruit>
.
another 20 lines
.
</fruits> (3 Replies)
How can i find texts inside a html tag using sed?
Html texts:
What i tried:
cat infile | sed -e 's/\(<kbd*\)\(.*\)\(kbd>\)/\2/
Expected result like this:
sed -i -e 's/@colophon/@@colophon/' \ -e 's/doc@cygnus.com/doc@@cygnus.com/' bfd/doc/bfd.texinfo (5 Replies)
Hi,
I have a txt file which contain this:
<a href="linux">Linux</a>
<a href="unix">Unix</a>
<a href="oracle">Oracle</a>
<a href="perl">Perl</a>
I'm trying to extract the text in between these anchor tag and ignoring everything else using grep. I managed to ignore the tags but unable to... (6 Replies)
I want to clean a html file.
I try to remove the script part in the html and remove the rest of tags and empty lines.
The code I try to use is the following:
sed '/<script/,/<\/script>/d' webpage.html | sed -e 's/<*>//g' | sed '/^\s*$/d' > output.txt
However, in this method, I can not... (10 Replies)
Discussion started by: YuhuiFeng
10 Replies
LEARN ABOUT CENTOS
xmstringgenerate
XmStringGenerate(library call) XmStringGenerate(library call)
NAME
XmStringGenerate -- A convenience function that generates a compound string
SYNOPSIS
#include <Xm/Xm.h>
XmString XmStringGenerate(
XtPointer text,
XmStringTag tag,
XmTextType type,
XmStringTag rendition);
DESCRIPTION
XmStringGenerate calls the XmStringParseText function with a default parse table of entries consisting of '', which maps to Separator, and
'', which maps to Tab. Matching RENDITION_BEGIN and RENDITION_END components containing rendition are placed around the resulting
XmString.
text Specifies a NULL-terminated string containing characters of a type determined by type.
tag Specifies the tag to be used in creating the result. The type of tag created (charset or locale) depends on the text type and the
value given. If specified value is NULL, and type indicates that a charset tag should be created, then the tag will have the
value of XmFONTLIST_DEFAULT_TAG. If tag is NULL, and type indicates a locale tag, then the tag will have the value of
_MOTIF_DEFAULT_LOCALE.
type Specifies the type of text to be passed in, and the tag type. If a locale tag should be created, then type has a value of either
XmMULTIBYTE_TEXT or XmWIDECHAR_TEXT. If a charset should be created, type has a value of XmCHARSET_TEXT.
rendition Specifies the rendition tag to be used in an XmSTRING_COMPONENT_RENDITION_BEGIN component which will begin the returned string
and in an XmSTRING_COMPONENT_RENDITION_END component which will end it. If rendition is NULL, no rendition tag is placed.
RETURN
Returns a new compound string. The function will allocate space to hold the returned compound string. When the application no longer
needs the returned compound string, the application should call XmStringFree.
RELATED XmString(3) and XmStringFree(3).
XmStringGenerate(library call)