Sponsored Content
Top Forums Shell Programming and Scripting Issues with awk scripting for HTML tags Post 303020853 by Neo on Sunday 29th of July 2018 07:43:36 AM
Old 07-29-2018
Quote:
Originally Posted by Roseline
code.
Code:
awk 'BEGIN{

FS=","

print  "<HTML>""<TABLE border="1"><TH>Store_count</TH><TH>Store_sold</TH><TH>Store_code</TH><TH>Backlogs</TH>"

}
....

I strongly recommend you not use table tags.

Better to use divs, even in email.

Also, I recommend you avoid any style attribute in your elements and instead include a small <style> tag with CSS; but I understand when you have just a small amount of style, why you would like to use the style attribute, but all the pros use CSS.
This User Gave Thanks to Neo For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell scripting issues

hi, I am stuck in a shell script where in i need to extract the specific users from \etc\passwd file. Once this is done, i need to assign Roles to these users which are different for different users. What could be the optimum solution. If i hard code the Roles values in a text file, how would i... (1 Reply)
Discussion started by: ashutosh101
1 Replies

2. UNIX for Dummies Questions & Answers

scripting issues...

Hi guys, I am thanks in advance for any posts and for reading. I am trying to run this script, under solaris: echo "****************************************" echo "The host is: " echo "****************************************" <<EOF find /etc/default -name login -exec ls -l {} \; find... (5 Replies)
Discussion started by: B14speedfreak
5 Replies

3. Shell Programming and Scripting

how to use html tag in shell scripting

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)
Discussion started by: jrex1983
5 Replies

4. Shell Programming and Scripting

Parsing HTML, get text between 2 HTML tags

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)
Discussion started by: Mysthik
1 Replies

5. Shell Programming and Scripting

Removing all except couple of html tags from html file

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)
Discussion started by: juubuntu
0 Replies

6. Shell Programming and Scripting

awk -- Extract data from html within multiple tags as reference

Hi, I'm trying to get some data from an html file, but the problem is before it can extract the information I have multiple patterns that need to be passed through. https://www.unix.com/shell-programming-scripting/150711-extract-data-awk-html-files.html Is a similar problem. The only... (5 Replies)
Discussion started by: counfhou
5 Replies

7. Shell Programming and Scripting

Scripting users issues...

Hello everyone, I am new to the forum community and need help with some scripts. I have attached what I have so far and these are scripts that have been passed on to me for a project that I have been assigned. To tell the truth I have never really worked with scripts and have no clue how these even... (3 Replies)
Discussion started by: wingzero89
3 Replies

8. Shell Programming and Scripting

Issues with scripting users

Hello everyone, I am new to the forum community and need help with some scripts. First off let me put that this is “NOT” a homework assignment as I have been given this information where I work (IUPUI-UITS) and need help on this since I have no experience in this area. The only reason I am turning... (1 Reply)
Discussion started by: wingzero89
1 Replies

9. UNIX for Advanced & Expert Users

How to use HTML in UNIX Bash Scripting?

I am planning to run an automation , Could anyone try to help me to how to write an html in unix scripting so when I try to send email it should work especially with Bold and colors (6 Replies)
Discussion started by: cassia
6 Replies

10. UNIX for Dummies Questions & Answers

Sendmail with HTML body and attachment code issues

Hi, I was working on getting an HTML file in the mail body along with attaching a "csv" file to the mail. Below are the 2 parts of the code. I need help with the second part where I'm sending the mail. The HTML file as an attachment is perfect without any issues and with proper formatting.... (6 Replies)
Discussion started by: aster007
6 Replies
CSS::DOM::Value::Primitive(3pm) 			User Contributed Perl Documentation			   CSS::DOM::Value::Primitive(3pm)

NAME
CSS::DOM::Value::Primitive - CSSPrimitiveValue class for CSS::DOM VERSION
Version 0.14 SYNOPSIS
# ... DESCRIPTION
This module implements objects that represent CSS primitive property values (as opposed to lists). It implements the DOM CSSPrimitiveValue, Rect, and RGBColor interfaces. METHODS
If you need the constructor, it's below the object methods. Normally you would get an object via CSS::DOM::Style's "getPropertyCSSValue" method. CSSValue Interface cssText Returns a string representation of the attribute. Pass an argument to set it. cssValueType Returns "CSS::DOM::Value::CSS_PRIMITIVE_VALUE". CSSPrimitiveValue Interface primitiveType Returns one of the "CONSTANTS" listed below. getFloatValue Returns a number if the value is numeric. The rest have still to be implemented. Rect Interface The four methods "top", "right", "bottom" and "left" each return another value object representing the individual value. RGBColor Interface The four methods "red", "green", "blue" and "alpha" each return another value object representing the individual value. Constructor You probably don't need to call this, but here it is anyway: $val = new CSS::DOM::Value::Primitive:: %args; The hash-style arguments are as follows. Only "type" and "value" are required. type One of the constants listed below under "CONSTANTS" value The data stored inside the value object. The format expected depends on the type. See below. css CSS code used for serialisation. This will make reading "cssText" faster at least until the value is modified. owner The style object that owns this value; if this is omitted, then the value is read-only. The value object holds a weak reference to the owner. property The name of the CSS property to which this value belongs. "cssText" uses this to determine how to parse text passed to it. This does not apply to the sub-values of colours, counters and rects, but it does apply to individual elements of a list value. index The index of this value within a list value (only applies to elements of a list, of course). format This is used by sub-values of colours and rects. It determines how assignment to "cssText" is handled. This uses the same syntax as the formats in CSS::DOM::PropertyParser. Here are the formats for the "value" argument, which depend on the type: CSS_UNKNOWN A string of CSS code. CSS_NUMBER, CSS_PERCENTAGE A simple scalar containing a number. Standard Dimensions Also a simple scalar containing a number. This applies to "CSS_EMS", "CSS_EXS", "CSS_PX", "CSS_CM", "CSS_MM", "CSS_IN", "CSS_PT", "CSS_PC", "CSS_DEG", "CSS_RAD", "CSS_GRAD", "CSS_MS", "CSS_S", "CSS_HZ" and "CSS_KHZ". CSS_DIMENSION An array ref: "[$number, $unit_text]" CSS_STRING A simple scalar containing a string (not a CSS string literal; i.e., no quotes or escapes). CSS_URI The URL (not a CSS literal) CSS_IDENT A string (no escapes) CSS_ATTR A string containing the name of the attribute. CSS_COUNTER An array ref: "[$name, $separator, $style]" $separator and $style may each be "undef". If $separator is "undef", the object represents a "counter(...)". Otherwise it represents "counters(...)". CSS_RECT An array ref: "[$top, $right, $bottom, $left]" The four elements are either CSSValue objects or array refs of arguments to be passed to the constructor. E.g.: [ [type => CSS_PX, value => 20], [type => CSS_PERCENTAGE, value => 50], [type => CSS_PERCENTAGE, value => 50], [type => CSS_PX, value => 50], ] When these array refs are converted to objects, the "format" argument is supplied automatically, so you do not need to include it here. CSS_RGBCOLOR A string beginning with '#', with no escapes (such as '#fff' or '#c0ffee'), a colour name (like red) or an array ref with three to four elements: [$r, $g, $b] [$r, $g, $b, $alpha] The elements are either CSSValue objects or array refs of argument lists, as with "CSS_RECT". CONSTANTS
The following constants can be imported with "use CSS::DOM::Value::Primitive ':all'". They represent the type of primitive value. CSS_UNKNOWN CSS_NUMBER CSS_PERCENTAGE CSS_EMS CSS_EXS CSS_PX CSS_CM CSS_MM CSS_IN CSS_PT CSS_PC CSS_DEG CSS_RAD CSS_GRAD CSS_MS CSS_S CSS_HZ CSS_KHZ CSS_DIMENSION CSS_STRING CSS_URI CSS_IDENT CSS_ATTR CSS_COUNTER CSS_RECT CSS_RGBCOLOR SEE ALSO
CSS::DOM CSS::DOM::Value CSS::DOM::Value::List CSS::DOM::Style perl v5.10.1 2010-12-10 CSS::DOM::Value::Primitive(3pm)
All times are GMT -4. The time now is 05:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy