Sponsored Content
Top Forums UNIX for Beginners Questions & Answers HTML color code and tabluar issue Post 302986129 by mirwasim on Sunday 20th of November 2016 12:20:43 PM
Old 11-20-2016
still same issue.
see if i am doing anything wrong
Code:
nawk '
BEGIN   {print "<br />\n<html>\n<Body>\n<table border=\"1\">"
        }
        {if ($3+0 >= 400 sub (/BAD REQUEST/, "BAD_REQUEST")) print "<tr style=\"color:#FF0000\">"
         else print "<tr>"
         for(i=1;i<=NF;i++)print "<td>" $i "</td>";
         print "</style /tr>"
        }
END     {print "</table>\n</Body>\n</html>\n<br />"
        }
' output.txt >output.html

 

6 More Discussions You Might Find Interesting

1. Solaris

Color issue

On most of my Sun Blade 100 and Ultra 5 systems running Solaris 9, I am having a problem with my video. The CDE looks fine but as soon as I open up Netscape 7 everything except the browser window changes to very bright and ugly colors. This is happening on multiple freshly installed systems w/... (1 Reply)
Discussion started by: meyersp
1 Replies

2. UNIX for Dummies Questions & Answers

Color code my vi

i am running under ssh i want to know how to make vi color code my bash scripting like how do i setup vim in ssh (1 Reply)
Discussion started by: jafa401
1 Replies

3. Shell Programming and Scripting

Handle color code

p1=text1 p2=text2(in red color) when i am trying to replace $p1 with $p2, content of the file from text2 become red. so when i open that file using vi its showing color code before tex2. please suggest me how to omit that color code and make content of that file in default color? (1 Reply)
Discussion started by: Biplab
1 Replies

4. Shell Programming and Scripting

Issue to attachment with HTML body

HI Team, I used below code to get attachment with HTML body. i having21062013.csv file . but i am getting junk .csv file. Can you please help me out. export MAILTO=rp908@gmail.com.com export SUBJECT="Test Waiver Code email" export BODY=test.html export ATTACH=21062013.csv... (4 Replies)
Discussion started by: Jewel
4 Replies

5. Shell Programming and Scripting

Add Color To html Doc

I have a script which converts a .csv file to html nicely. Trying to add 3 colors, green, yellow and red to the output depending upon the values in the cells. Tried some printf command but just can't seem to get any where. Any ideas would be appreciated. nawk 'BEGIN{ FS="," print ... (7 Replies)
Discussion started by: jimmyf
7 Replies

6. Shell Programming and Scripting

Cell color based on Status in HTML output

Hi, I need to get the Status Column in Green if it is approved and Red if it is declined in the HTML output attachment#!/bin/bash body_csv="/authlistener/ProdA/service/queryRS.csv" body_html="/authlistener/ProdA/service/queryRS.html" ... (1 Reply)
Discussion started by: maddelav
1 Replies
UNAME(1)						    BSD General Commands Manual 						  UNAME(1)

NAME
uname -- Print operating system name SYNOPSIS
uname [-amnprsv] DESCRIPTION
The uname utility writes symbols representing one or more system characteristics to the standard output. The following options are available: -a Behave as though all of the options -mnrsv were specified. -m print the machine hardware name. -n print the nodename (the nodename may be a name that the system is known by to a communications network). -p print the machine processor architecture name. -r print the operating system release. -s print the operating system name. -v print the operating system version. If no options are specified, uname prints the operating system name as if the -s option had been specified. SEE ALSO
hostname(1), machine(1), sw_vers(1), uname(3) STANDARDS
The uname utility conforms to IEEE Std 1003.2-1992 (``POSIX.2''). The -p option is an extension to the standard. BSD
November 9, 1998 BSD
All times are GMT -4. The time now is 08:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy