I have a little script that I got of the internet and that I use in Squid to block ads.
I used that script with linux but now i have moved my servers to freebsd. I have a step learning curve there but it is fun: Back to the script issue.
The script used to work i with linux but freebsd is a bit different.
This line is causing me issue
If I use the line above it in the script below, the destination folder is going to be completely emptied. The goal is to get rid of the HTML tags "(^|\.)" in the list that is given by http address "pgl.yoyo.org" for bad ad website. Then it is used by squid proxy.
The line above is unusable. The script works well if i modified the line above without the pipe, grep and the tags
Then the list is being updated correctly and not emptied but still with the HTML tags in it.
Any help is much appreciated
Kind Regards,
Last edited by Scott; 11-20-2011 at 02:23 PM..
Reason: Code tags
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)
Hi everyone:
I want to extract string which is in between certain html tag.
e.g.
I tried with grep,cut, awk but could not find exact syntax for this one. :wall:
PS>Sorry about bad english. (8 Replies)
I am cleaning forum posts to convert them in offline reading version with clean html text. All files are with html extension and reside in one folder. There is some java script i would like to remove, which looks like
<script LANGUAGE="JavaScript1.1">
<!--
function mMz()
{
var mPz = "";... (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)
Hello,
I want to parse the contents of a multiline html tag
ex:
<html>
<body>
<p>some other text</p>
<div>
<p class="margin-bottom-0">
text1
<br>
text2
<br>
<br>
text3
</p>
</div>
</body> (15 Replies)
Discussion started by: SorcRR
15 Replies
LEARN ABOUT DEBIAN
wml::std::grid
wml::std::grid(3) EN Tools wml::std::grid(3)NAME
wml::std::grid - Layout Grid
SYNOPSIS
#use wml::std::grid
<grid [attributes]>
<cell [attributes]>...</cell>
:
<cell [attributes]>...</cell>
</grid>
DESCRIPTION
The "<grid>" container tag provides a mixture between a HTML table and a TeX-like way of specifying its dimensions and the alignment of its
cells.
ATTRIBUTES
First the possible attributes for "<grid>":
"summary"
This attribute will be inserted into the "table" tag, see documentation of HTML 4.0 for details on why this attribute is recommended.
"layout"
This specifies the layout of the grid in X and Y dimension, i.e. "3x2" means 3 columns (x-dimension) and 2 rows (y-dimension). Default
is "1x"NCELL where NCELL is the number of cell tags or in other words: Default is a top-down list.
"align"
This specifies the horizontal alignment of the cells in a row. The argument has to contain as many characters as there are cells in a
row. The supported alignment characters are `"l"' (left), `"r"' (right) and `"c"' (center). Default is `"l...l"' (as much "l"'s as
there are cells in a row).
"valign"
This specifies the vertical alignment of the cells in a column. The argument has to contain as many characters as there are cells in a
column. The supported alignment characters are `"t"' (top), `"b"' (bottom) and `"m"' (middle). Default is `"t...t"' (as much "t"'s as
there are cells in a column).
"width"
This is the corresponding attribute of the HTML "<table>" tag. Use it to set the width of the grid. Default is no specified width.
"spacing"
This is the corresponding attribute to "cellspacing" of the HTML "<table>" tag. Use it to set the spacing of cells in the grid, i.e.
the space around the content of each cell. Default is 0 (no space).
"padding"
This is the corresponding attribute to "<cellpadding>" of the HTML "<table>" tag. Use it to set the padding between cells in the grid,
i.e. the inter-cell space. Default is 0 (no space).
"border"
This is the corresponding attribute of the HTML "<table>" tag. Use it to set the border width of the grid. Default is 0 (no border).
"bgcolor"
This is the corresponding attribute of the HTML "<table>" tag. Use it to set the background color of the grid. Default is no specified
color.
"color"
This sets the foreground (text) color of the grid's contents. Actually this sets the default for the same attribute of "<cell>".
Default is no specified color.
Second the possible attributes for "<cell>":
"align"
This is the corresponding attribute of the HTML "<td>" tag. Use it to set the horizontal alignment of the cell's contents. Default is
taken from the same attribute of "<grid>".
"valign"
This is the corresponding attribute of the HTML "<td>" tag. Use it to set the vertical alignment of the cell's contents. Default is
taken from the same attribute of "<grid>".
"bgcolor"
This is the corresponding attribute of the HTML "<td>" tag. Use it to set the background color of a particular cell. Default is no
specified color.
"color"
This sets the foreground (text) color of the cell's contents. This is done via the HTML "<font>" tag. Default is no specified color
or the color from the same attribute of "<grid>".
"rowspan"
This is the corresponding attribute of the HTML "<td>" tag. Use it to span a cell over more then one row of the grid. Default is 1 row.
"colspan"
This is the corresponding attribute of the HTML "<td>" tag. Use it to span a cell over more then one column of the grid. Default is 1
column.
"width"
This is the corresponding attribute of the HTML "<td>" tag. Use it to set the width of the cell. Default is no specified width.
"height"
This is the corresponding attribute of the HTML "<td>" tag. Use it to set the height of the cell. Default is no specified height.
EXAMPLE
<grid bgcolor="#000000" color="#ffffff"
layout="3x2" align="llr" valign="tm">
<cell>A</cell> <cell>B</cell> <cell>C</cell>
<cell>D</cell> <cell>E</cell> <cell>F</cell>
</grid>
AUTHOR
Ralf S. Engelschall
rse@engelschall.com
www.engelschall.com
REQUIRES
Internal: P1, P2, P3, P5
External: --
SEE ALSO
HTML <"table">-tag.
EN Tools 2014-04-16 wml::std::grid(3)