01-08-2010
sorry, I was wrong about the cat... stdin is used when no file is specified.
But, is the HTML table definition really correct? There are open <td in the code?
/L
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
How do I format the following?
I have a for loop that retrieves me the path and file name of a file. In column fashion I would like to add the time and another variable containing the file's size. This will result in all the time being under each other and all the file size's being under... (6 Replies)
Discussion started by: hugow
6 Replies
2. UNIX for Dummies Questions & Answers
Using a for loop I am able to get the following log file below. I would like o change the format a bit as is indicated lower down. I have looked at awk and sed but somehow is not getting any joy. I am a bit new to ksh scripting. Please assist.
This is the format of my current log file after the... (1 Reply)
Discussion started by: hugow
1 Replies
3. Forum Support Area for Unregistered Users & Account Problems
We use AIX mailx or sendmail. How can I format a text file so that lotus notes users can see diferent fonts and highlighting. Or can a gif file (company logo..) be sent along with a text file and the Lotus notes user would see the logo and text displayed at the same time and not as an attachment? (0 Replies)
Discussion started by: lidoiwo
0 Replies
4. UNIX for Dummies Questions & Answers
Hi,
Im trying to find and replace text within a unix file using sed.
The command that i have been using is
sed '/,null,/ s//, ,/g' result.txt>result.tmp
for replacing ",null," with ", ,".
But this only replaces the first occurrance of ,null, in every line. I want to do it globally.
It... (7 Replies)
Discussion started by: sohaibs
7 Replies
5. Shell Programming and Scripting
Dear All
I am facing problem while extracting data from below mention input file.
My op should be like this.Required field display in red in file.
Request you all to help.
OP:
RXOTX-46-5 1B4
RXOTX-46-4 2B5
INPUT FILE:
<RXMFP:MO=RXOTX-46-5;
RADIO X-CEIVER ADMINISTRATION... (4 Replies)
Discussion started by: jaydeep_sadaria
4 Replies
6. Shell Programming and Scripting
Dear all
I had input file as mention below and want op as mention.
Kindly let me knw possible ways.
Regards
Jaydeep
INPUT:
RXOTX-48-1
2A 34
2B 35
RXOTX-499-2
2C 32
RXOTX-4-1
2D 23
OUTPUT: (3 Replies)
Discussion started by: jaydeep_sadaria
3 Replies
7. Shell Programming and Scripting
Hi Experts,
I have a text exactly like below in a file:
id item_id
item_date prin_mkt_val
--------------------------- ---------------------------
------------------------------- ------------------------
... (1 Reply)
Discussion started by: apatil65
1 Replies
8. Shell Programming and Scripting
I created one file on windows system and is visible as :
TestTable,INSERT,večilnin1ईगल受害者是第,2010-02-02 10:10:10.612447,137277,ईगल受害者是第večilnin!@#$%^&*()_+=-{}]
But when send this file to unix system, the file is visible as :
TestTable,INSERT,žvečilnin1ई-ल -害...是第,2010-02-02 ... (4 Replies)
Discussion started by: Shaishav Shah
4 Replies
9. UNIX for Dummies Questions & Answers
Hi, I wanted to select the text in gvim using mouse for coping. some times it works fine and full text will be selected and copied to clipboard if it is like shown in first fig. Paste of the copied text can be done by clicking the middle mouse button.
But some times the text will be selected as... (2 Replies)
Discussion started by: twistedpair
2 Replies
LEARN ABOUT CENTOS
template::plugin::html
Template::Plugin::HTML(3) User Contributed Perl Documentation Template::Plugin::HTML(3)
NAME
Template::Plugin::HTML - Plugin to create HTML elements
SYNOPSIS
[% USE HTML %]
[% HTML.escape("if (a < b && c > d) ..." %]
[% HTML.element(table => { border => 1, cellpadding => 2 }) %]
[% HTML.attributes(border => 1, cellpadding => 2) %]
DESCRIPTION
The "HTML" plugin is a very basic plugin, implementing a few useful methods for generating HTML.
METHODS
escape(text)
Returns the source text with any HTML reserved characters such as "<", ">", etc., correctly esacped to their entity equivalents.
attributes(hash)
Returns the elements of the hash array passed by reference correctly formatted (e.g. values quoted and correctly escaped) as attributes for
an HTML element.
element(type, attributes)
Generates an HTML element of the specified type and with the attributes provided as an optional hash array reference as the second argument
or as named arguments.
[% HTML.element(table => { border => 1, cellpadding => 2 }) %]
[% HTML.element('table', border=1, cellpadding=2) %]
[% HTML.element(table => attribs) %]
DEBUGGING
The HTML plugin accepts a "sorted" option as a constructor argument which, when set to any true value, causes the attributes generated by
the "attributes()" method (either directly or via "element()") to be returned in sorted order. Order of attributes isn't important in
HTML, but this is provided mainly for the purposes of debugging where it is useful to have attributes generated in a deterministic order
rather than whatever order the hash happened to feel like returning the keys in.
[% USE HTML(sorted=1) %]
[% HTML.element( foo => { charlie => 1, bravo => 2, alpha => 3 } ) %]
generates:
<foo alpha="3" bravo="2" charlie="1">
AUTHOR
Andy Wardley <abw@wardley.org> <http://wardley.org/>
COPYRIGHT
Copyright (C) 1996-2007 Andy Wardley. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
Template::Plugin
perl v5.16.3 2011-12-20 Template::Plugin::HTML(3)