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)
Hai friends
I have a small doubt..
how can we use html tag in shell scripting
code :
echo "<html>"
echo "<body>"
echo " welcome to peace world "
echo "</body>"
echo "</html>"
output displayed like this:
<html>
<body>
welcome to peace world
</body>
</html> (5 Replies)
Greetings,
I am very new to the UNIX shell scripting and would like to learn. However, I am currently stuck on how to process the below sample of code from an XML file using UNIX comands:
<ATTRIBUTE NAME="Memory" VALUE="512MB"/>
<ATTRIBUTE NAME="CPU Speed" VALUE="3.0GHz"/>
<ATTRIBUTE... (5 Replies)
Hi all,
I have a file which i have to remove some line from it,
the lines that i have to remove from my file is as below:
</new_name></w"s" langue="Fr-fr" version="1.0" encoding="UTF-8" ?> <New_name>
and it is finding at the middle of my file,
is there any command line in linux to do it or do... (10 Replies)
Hi All,
Please help me out in resolving this..
<secondTag enabled='true' processName='test1' pidFile='/tmp/test1.pid' />
From the above tag, I'm trying to retrieve the value of enabled and pidFile attributes by means of processName attribute.
Would be thankful in resolving this..... (5 Replies)
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
----------
<a href="http://mydomain.com/cgi-bin/anyboard.cgi?fvp=/family/sexuality_and_spirituality/&cmd=rA&cG=43">
-------------
my... (6 Replies)
Hi
I have got a XML file which has got content as follows:
<FUNCall81110000 Tag="81110000" CallDate="25/08/11" CallTime="00:03:22" TotalUsageValue="30" MeasurementUnit="1"/>
I want to remove TotalUsageValue="30" only
and TotalUsageValue="XXXXX"
here XXX can be any value. (1 Reply)
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)
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 DEBIAN
wml::std::page
wml::std::page(3) EN Tools wml::std::page(3)NAME
wml::std::page - Standard HTML Page Header and Footer
SYNOPSIS
#use wml::std::page
<page [attributes]>
[<page_end>]
<head>...</head>
<title>...</title>
DESCRIPTION
This include file provides the new "<page>" tag which is a advanced combination of the HTML "<body>" and "<head>" container tags. The idea
is to provide complete header and footer tags via one single tag while providing new features like page indentation, easy title
specification and setup of default values for the page colors.
ATTRIBUTES
"title"
This is a shorthand for the container tag "<title>". The value of this attribute is placed in the "<head>" section of the page,
surrounded with the "<title>" tag.
"indent"
This sets the indentation level of the page in units of "<blockquote>"'s. Default is no indentation. Setting "indent" to a value of N
means the page is surrounded by N "<blockquote">> tags. The attribute "indent=1" or "indent=2" usually provides the best readable
layout.
"background"
This just corresponds to the same attribute of the "<body>" tag and sets the background image. This is per default not used.
"bgcolor"
This just corresponds to the same attribute of the "<body>" tag and sets the background color. Default is "bgcolor="#ffffff"" (white).
"text"
This just corresponds to the same attribute of the "<body>" tag and sets the text color. Default is "text="#000000"" (black).
"link"
This just corresponds to the same attribute of the "<body>" tag and sets the normal hyperlink color. Default is "text="#333399""
(medium blue).
"alink"
This just corresponds to the same attribute of the "<body>" tag and sets the color for activated hyperlinks. Default is
"text="#9999ff"" (light blue).
"vlink"
This just corresponds to the same attribute of the "<body>" tag and sets the color for already visited hyperlinks. Default is
"text="#000066"" (dark blue).
"color"
When setting "color="none"", the five previous attributes are not put into the "<body>" tag.
"onload"
This just corresponds to the same attribute of the "<body>" tag and sets a JavaScript even handler which is activated after page was
loaded. This is per default not used.
"info"
This automatically puts a "<info style=meta>" tag into the "<head>" section of the page. See wml::std::info(3) for more details.
"slices"
This enables the creating of three slices: "WML_STDPAGE_HEAD", "WML_STDPAGE_BODY" and "WML_STDPAGE_FOOT". These can be used later in
Pass 9 (Slice) for cutting out parts of the page.
:html:ATTR=STR :body:ATTR=STR
The ``ATTR=STR'' pairs are passed along to the "<html>" and "<body>" HTML tags.
OTHER COMMANDS
This module implements two new macros, called "<title>"..."</title>" and "<head>"..."</head>". The first one defines the title of the page,
and the second appends its body into the HEAD section of the HTML documents. Its main purpose is to add meta-tags, either directly or with
the help of wml::std::info(3).
AUTHOR
Ralf S. Engelschall
rse@engelschall.com
www.engelschall.com
REQUIRES
Internal: P1, P2, P5
External: --
SEE ALSO
HTML "<head>", "<body>" and "<title>" tags; wml::std::info(3)EN Tools 2014-04-16 wml::std::page(3)