07-22-2015
Why don't you use printf which behaves consistently across systems (which echo does not do reliably)?
This User Gave Thanks to RudiC For This Post:
7 More Discussions You Might Find Interesting
1. AIX
Hi All,
I have Network color laser printer which is to be configured in AIX5L.
The Model of the printer is OKI C3200.
Will it is supported with AIX 5..? I could not find any drivers for this.
Will any compatible drivers are available for this printer... I tried with the default drivers hplj-4... (2 Replies)
Discussion started by: helloajith
2 Replies
2. UNIX for Dummies Questions & Answers
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!!!! (3 Replies)
Discussion started by: bobo
3 Replies
3. AIX
Hi,
I have retrieved the following rpm coreutils-5.2.1-2.aix5.1.ppc.rpm to get color with ls command. It doesnt work very well with | more.
ls -ltr | more
^[[0mtotal 8
-rwxr--r-- 1 ora10 dba 4362 2009-01-08 11:08 ^[[01;32mora_base.ksh^[[0m
^[[m
It works fine with pg
ls -ltr | pg... (3 Replies)
Discussion started by: tagger
3 Replies
4. Shell Programming and Scripting
Hi all
I have a file contains columns showing figures as below :
Input file
A B C
D 50 60 90
E 100 20 53
F 30 40 70
G 25 27 45
I want to color the value above or equal 90 by red and to be shown as below
output file... (5 Replies)
Discussion started by: Bluetoot
5 Replies
5. Red Hat
Hi. How do I change the background color and text in Fedora. I did find the set_color -b command.
Thanks (1 Reply)
Discussion started by: Ccccc
1 Replies
6. Programming
I'm writing my own Unix ls command in c and I was wondering if anyone knows how to or can point me to a tutorial that shows me how to change the text color of the filename depending on if it's a directory, regular file, linked file, etc..., like the real ls command does? Thanks. (4 Replies)
Discussion started by: snag49ers
4 Replies
7. Shell Programming and Scripting
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
ECHO(1) BSD General Commands Manual ECHO(1)
NAME
echo -- write arguments to the standard output
SYNOPSIS
echo [-n] [string ...]
DESCRIPTION
The echo utility writes any specified operands, separated by single blank (' ') characters and followed by a newline ('
') character, to the
standard output.
The following option is available:
-n Do not print the trailing newline character. This may also be achieved by appending 'c' to the end of the string, as is done by iBCS2
compatible systems. Note that this option as well as the effect of 'c' are implementation-defined in IEEE Std 1003.1-2001
(``POSIX.1'') as amended by Cor. 1-2002. Applications aiming for maximum portability are strongly encouraged to use printf(1) to sup-
press the newline character.
Some shells may provide a builtin echo command which is similar or identical to this utility. Most notably, the builtin echo in sh(1) does
not accept the -n option. Consult the builtin(1) manual page.
EXIT STATUS
The echo utility exits 0 on success, and >0 if an error occurs.
SEE ALSO
builtin(1), csh(1), printf(1), sh(1)
STANDARDS
The echo utility conforms to IEEE Std 1003.1-2001 (``POSIX.1'') as amended by Cor. 1-2002.
BSD
April 12, 2003 BSD