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)
Hi folks,
I have a perl script which sends out email after successful completion of job as inline html, I want to send it out as two parts now as html inline and html attachment. see the attached script.
Thanks in advance (1 Reply)
I am trying to use shellinabox as a terminal emulator. Everything is working except there seems to be no way to simulate an F14 button press in shellinabox. I am already embedding shellinabox in an html page so Im am wondering if there is a way to make an html/js button that will pass F14 to the... (0 Replies)
Hi there..
I need a proper "mutt" command to send a mail with html body and html attachment at a time.
Also if possible let me know the other commands to do this task.
Please help me.. (2 Replies)
Can we use a here document inside a here document?
Something like this
ssh user@remotehost << REMOTE
sudo vserver vsernamename enter << VSERVER
perform actions on vserver.
VSERVER
REMOTE (6 Replies)
Hello,
I have a script which is sending an html file as an attachment.
#!/usr/bin/ksh
export MAILTO="user@company.com"
export CONTENT="/usr/tmp/file.html"
export SUBJECT="EmailSubject"
(
echo "Subject: $SUBJECT"
echo "MIME-Version: 1.0"
echo "Content-Type: text/html"
echo... (0 Replies)
Hi there, I'm quite new to the forum and shell scripting.
I want to filter out the "166.0 points". The results, that i found in google / the forum search didn't helped me :(
<a href="/user/test" class="headitem menu" style="color:rgb(83,186,224);">test</a><a href="/points" class="headitem... (1 Reply)
I tried to find elegant (or at least simple) way to remove all but couple of html tags from html file, but all examples I found dealt with removing all the tags.
The logic of the script would be:
- if there is <li> or <ul> on the line, do nothing (=write same line to output)
- if there is:... (0 Replies)
Hi all:
Been racking my brain on this for the last couple of days and what has been most frustrating is that this is the last piece I need to complete a project.
There are numerous posts discussing mutt in this forum and others but I have been unable to find similar issues.
Running with... (1 Reply)
Hi all,
I have to find the count from File. tsv and need the output file format will be in html using shell script.
Ex:
File.tsv
A B C D
1 2 3 4
5 6 7 4
9 10 11 12
output in html:
FileName
Count A 3 (1 Reply)
Discussion started by: Shenbaga.d
1 Replies
LEARN ABOUT DEBIAN
podtree2html
PODTREE2HTML(1p) User Contributed Perl Documentation PODTREE2HTML(1p)NAME
podtree2html - translate a POD to HTML
SYNOPSIS
"podtree2html" ["--base" url] ["--css" url] ["--"["no"]"toc"] ["--hr" level] ["--bgcolor" #rrggbb] ["--text" #rrggbb] ["--variables"
values.pl] source dest [template] [variable=value ...]]
DESCRIPTION
"podtree2html" reads the POD in file source, translates it to HTML, and writes it to file dest. dest is created world-readable.
If a template file is provided, then template will be filled in by the "Text::Template" module and written to dest. Here is a minimal
template, showing all the variables that are set by "podtree2html".
<html>
<head>
<base href="{$base}">
<link href="{$css}" rel="stylesheet" type="text/css">
<title>{$title}</title>
</head>
<body bgcolor="{$bgcolor}" text="{$text}">
{$toc}
{$body}
</body>
</html>
If the "--variables" option is provided, then the file values.pl will be executed with a "do" call before the template is filled in.
values.pl may contain arbitrary Perl code. The program fragments in the template are evaulted in the "Pod::Tree::HTML" package. Any
variables that values.pl sets in this package will be available to the template.
Additional scalar variables may be set on the command line with the variable=value syntax. Do not prefix variable with a "$" sigil.
Variables set on the command line override variables set in values.pl.
OPTIONS
"--base" url
Translate "L<>" sequences into HTML links relative to url.
"--css" url
Specifies a Cascanding Style Sheet for the generated HTML page. Here are example rules for all the different HTML elements that may
appear in a POD.
a:link { background: #ff8080 }
body { background: #f0f0f0 }
code { background: #c0ffc0 }
dd { background: #ffffe0 }
dl { background: #fffff0 }
dt { background: #ffffc0 }
h1 { background: #ffc0c0 }
h2 { background: #ffe0e0 }
hr { background: #ff0000; height: 5px }
i { background: #ffc0c0 }
li { background: #e0e0e0 }
ol { background: #fff0ff }
p { background: #f0f0ff }
pre { background: #f0fff0 }
ul { background: #f0ffff }
"--"["no"]"toc"
Includes or omits the table of contents. Default is to include the TOC.
"--hr" level
Controls the profusion of horizontal lines in the output, as follows:
level horizontal lines
0 none
1 between TOC and body
2 after each =head1
3 after each =head1 and =head2
Default is level 1.
"--bgcolor" #rrggbb
Set the background color to #rrggbb. Default is white.
"--text" #rrggbb
Set the text color to #rrggbb. Default is black.
"--variables" values.pl
Execute the file values.pl with a "do" call before filling in template. values.pl may contain arbitrary Perl code.
REQUIRES
"Pod::Tree::HTML"
SEE ALSO
"pods2html", "Pod::Tree::HTML"
AUTHOR
Steven McDougall, <swmcd@world.std.com>
COPYRIGHT
Copyright (c) 1999-2007 by Steven McDougall. This program is free software; you can redistribute it and/or modify it under the same terms
as Perl.
perl v5.10.1 2009-04-11 PODTREE2HTML(1p)