Sponsored Content
Full Discussion: Print in color
Top Forums UNIX for Dummies Questions & Answers Print in color Post 302086511 by bobo on Thursday 24th of August 2006 10:56:13 AM
Old 08-24-2006
Data Print in color

I have a short code below:

awk 'NR==1 {printf "'$information'-MYDATA-'$information' \n"} {print $0}' data.file > newdata.file

I want the "information" color in RED and MYDATA in BLUE. How can I do it?

Please help!!!!
 

2 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

color print using perl

Hi i want to print the text in different color using perl script. i am able to print on console(terminal). but if i try to print the same into a file, i am not able to do color.pl #!/bin/usr/perl use Term::ANSIColor; print "This text is normal.\n"; use Term::ANSIColor qw(:constants);... (3 Replies)
Discussion started by: roopa
3 Replies

2. AIX

How to print color text in AIX?

Hi I'd like to print color text and I've tried this: echo "\033but it didn't woked. When I changed 0 --> 1/4/5, the text "HI" --> bold/underline/blink, but when I changed 31 or 33 to other values, the color didn't change. What's the problem. Need to install something ??? (8 Replies)
Discussion started by: bobochacha29
8 Replies
MAXDB_GET_HOST_INFO(3)							 1						    MAXDB_GET_HOST_INFO(3)

maxdb_get_host_info - Returns a string representing the type of connection used

       Procedural style

SYNOPSIS
string maxdb_get_host_info (resource $link) DESCRIPTION
Object oriented style string$maxdb->host_info () The maxdb_get_host_info(3) function returns a string describing the connection represented by the $link parameter is using. RETURN VALUES
A character string representing the server hostname and the connection type. EXAMPLES
Example #1 Object oriented style <?php $maxdb = new maxdb("localhost", "MONA", "RED", "DEMODB"); /* check connection */ if (maxdb_connect_errno()) { printf("Connect failed: %s ", maxdb_connect_error()); exit(); } /* print host information */ printf("Host info: %s ", $maxdb->host_info); /* close connection */ $maxdb->close(); ?> Example #2 Procedural style <?php $link = maxdb_connect("localhost", "MONA", "RED", "DEMODB"); /* check connection */ if (maxdb_connect_errno()) { printf("Connect failed: %s ", maxdb_connect_error()); exit(); } /* print host information */ printf("Host info: %s ", maxdb_get_host_info($link)); /* close connection */ maxdb_close($link); ?> The above example will output something similar to: Host info: localhost SEE ALSO
maxdb_get_proto_info(3). PHP Documentation Group MAXDB_GET_HOST_INFO(3)
All times are GMT -4. The time now is 07:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy