I am doing a basic script to check if services are disabled, and I was wondering how to change to colours for PASS and FAIL to green & red respectively.
Last edited by pludi; 11-08-2009 at 11:38 AM..
Reason: code tags, please...
Hi all,
I have written one script. If i run the script, particular text in that script needs to be displayed in color.how this could be done?any commands r there to change the colour of the text while running the script?
Ur help is appreciated !!!
Thanx in Advance,
Sona. (7 Replies)
Hi guys,
I am converting a bash script to perl. I need lots of help and pointers on how to make the script work. Any help would be greatly appreciated. Here is what I have:
#!/usr/bin/perl
#Decrypt Files
$dir = "/usr/bin/gpg;
opendir(PGP_DIR, $dir) || die "can't opendir $dir: $!";... (3 Replies)
I want to run some unix commands on one file..let say if i change the name and that name of file is present already. I dnt want to change that presnt file but instead of that make another one with different name
eg.. usa.txt if it is there make usa.txt.1 something like that
Also one more... (5 Replies)
How can I change the cron entries only for ABC and XYZ from dosomething_1.0.sh to nowchanged_2.0 using a bash script ?
Any help will be appreciated.
#
# ABC
00,05,10,15,20,25,30,35,40,45,50,55 * * * * /mydir/dosomething_1.0.sh 1>/dev/null 2>&1
#
#
##
# DEF... (4 Replies)
Hello!
I need to write a bash script for my university classes, and I came up with an idea of a program that would test the speed of typing - there is some random text that you have to rewrite, and the script measures time, number of mistakes etc. The text would be visible on the screen all... (3 Replies)
Hello, I have a situation where I want to change a line of text in multiple files, but the problem is that I want to change the text to something unique for each file.
For example, let's say I have five files named bob.txt, joe.txt, john.txt, tom.txt, and zach.txt. Each of these files has a... (5 Replies)
According to multiple sources you should not change the default shell to bash for the root user because it will make the system unbootable.
Is there a safe way to launch bash for root when logging in? Perhaps I can edit /etc/profile or add it to a startup script somewhere? (2 Replies)
Hello All,
I am using awk with html options to format and send output to another file.
Below command works fine, no issues.
awk 'BEGIN{print "<table border="1" width="1000" >"} {print "<tr>";for(i=1;i<=NF;i++)print "<td>" $i"</td>";print "</tr>"} END
{print "</table>"}' ${TMPLOGFILE1} >>... (0 Replies)
Hello,
I want to run a script written in ksh but my default shell is bash as root e.g in the script it has #!/bin/ksh
i have gone into /etc/passwd to change it from :/bin/bash to /bin/ksh
but still giving me an error when running scripts such as ./installer
-bash: ./installer: /bin/ksh:... (3 Replies)
Discussion started by: DOkuwa
3 Replies
LEARN ABOUT DEBIAN
caca_cyan
libcaca attribute definitions(3caca) libcaca libcaca attribute definitions(3caca)NAME
libcaca attribute definitions -
Enumerations
enum caca_color { CACA_BLACK = 0x00, CACA_BLUE = 0x01, CACA_GREEN = 0x02, CACA_CYAN = 0x03, CACA_RED = 0x04, CACA_MAGENTA = 0x05,
CACA_BROWN = 0x06, CACA_LIGHTGRAY = 0x07, CACA_DARKGRAY = 0x08, CACA_LIGHTBLUE = 0x09, CACA_LIGHTGREEN = 0x0a, CACA_LIGHTCYAN =
0x0b, CACA_LIGHTRED = 0x0c, CACA_LIGHTMAGENTA = 0x0d, CACA_YELLOW = 0x0e, CACA_WHITE = 0x0f, CACA_DEFAULT = 0x10, CACA_TRANSPARENT
= 0x20 }
enum caca_style { CACA_BOLD = 0x01, CACA_ITALICS = 0x02, CACA_UNDERLINE = 0x04, CACA_BLINK = 0x08 }
Detailed Description
Colours and styles that can be used with caca_set_attr().
Enumeration Type Documentation
enum caca_color libcaca colour keyword
Enumerator:
CACA_BLACK
The colour index for black.
CACA_BLUE
The colour index for blue.
CACA_GREEN
The colour index for green.
CACA_CYAN
The colour index for cyan.
CACA_RED
The colour index for red.
CACA_MAGENTA
The colour index for magenta.
CACA_BROWN
The colour index for brown.
CACA_LIGHTGRAY
The colour index for light gray.
CACA_DARKGRAY
The colour index for dark gray.
CACA_LIGHTBLUE
The colour index for blue.
CACA_LIGHTGREEN
The colour index for light green.
CACA_LIGHTCYAN
The colour index for light cyan.
CACA_LIGHTRED
The colour index for light red.
CACA_LIGHTMAGENTA
The colour index for light magenta.
CACA_YELLOW
The colour index for yellow.
CACA_WHITE
The colour index for white.
CACA_DEFAULT
The output driver's default colour.
CACA_TRANSPARENT
The transparent colour.
enum caca_style libcaca style keyword
Enumerator:
CACA_BOLD
The style mask for bold.
CACA_ITALICS
The style mask for italics.
CACA_UNDERLINE
The style mask for underline.
CACA_BLINK
The style mask for blink.
Author
Generated automatically by Doxygen for libcaca from the source code.
Version 0.99.beta18 Fri Apr 6 2012 libcaca attribute definitions(3caca)