It has worked.Thanks a lot. Thanks you very much. I really appreciate your help..
---------- Post updated at 04:47 PM ---------- Previous update was at 04:45 PM ----------
Hi..
It has worked.Thanks a lot. Thanks you very much. I really appreciate your help..
---------- Post updated 05-07-10 at 12:57 PM ---------- Previous update was 05-06-10 at 04:47 PM ----------
Hi..
I have tried the script on the report, I see that there is a another change that needs to be made.
For the differnce of today-yest , is there any possibilty of having an negative sign , when the value of today.txt is less than that of yest.txt
Hi i've written a script which reads last two line of the log file from N number of servers and send the mail by redirecting to a particular log file.
And the two lines is displayed below.
Oracle Q03 Begin Hot BACKUP Time: 07/23/08 18:35:46
Oracle Q03 End Hot BACKUP Time: 07/24/08 14:18:15... (1 Reply)
Hey there,
I just stumbled upon a difference between using awk on the commandline and using it in a shellscript.
I have a variable, e.g.: PROG=vim
then i want to check if the package with this name is installed: TEMPVAL=$(dpkg -l | awk '{ if ($2 == "$PROG") print $2 }') (Im using... (10 Replies)
Hey everyone,
I have two folders (folder1, folder2). Folder2 is a compiled version of a bunch of other folders including folder1. I want to compare folder1 to folder2 to make sure that folder2 contains all of the contents of folder1. If it does not, I would like the script to output... (5 Replies)
I think both write at the end of the file ......
but is there a sharp difference between those 2 instruction .....
thank you
this is my 3rd question today forgive me :D (1 Reply)
Hi Guys,
What is difference between this two lines in script
logger -p daemon.info -t postback Starting /opt/local/bin/backup-report
and
/opt/local/bin/backup-report
is the backu script running twice here?
Thanks, (2 Replies)
Hi,
So I have a very simple script which loops over 5 times and prints the iterator value.
#!/bin/sh
START=1
END=5
for i in $(eval echo "{$START..$END}")
do
echo "$i"
done
If I save this script in a .sh file and run it in the terminal, the output I get is
{1..5} (4 Replies)
Hi Team,
a silly question.
Let's say i have a script called xyz.ksh
what is the difference in executing the script as follows?
./xyz.ksh
ksh xyz.ksh
Thanks (2 Replies)
In the awk I am trying to subtract the difference $3-$2 of each matching $4 before the first _ (underscore) and print that value in $13.
I think the awk will do that, but added comments. What I am not sure off is how to add a line or lines that will add sum each matching $13 value and put it in... (2 Replies)
Discussion started by: cmccabe
2 Replies
LEARN ABOUT REDHAT
set_color
set_color(1) fish set_color(1)NAME
set_color - set_color - set the terminal color
set_color - set the terminal color
Synopsis
set_color [-v --version] [-h --help] [-b --background COLOR] [COLOR]
Description
Change the foreground and/or background color of the terminal. COLOR is one of black, red, green, brown, yellow, blue, magenta, purple,
cyan, white and normal.
o -b, --background Set the background color
o -c, --print-colors Prints a list of all valid color names
o -h, --help Display help message and exit
o -o, --bold Set bold or extra bright mode
o -u, --underline Set underlined mode
o -v, --version Display version and exit
Calling set_color normal will set the terminal color to whatever is the default color of the terminal.
Some terminals use the --bold escape sequence to switch to a brighter color set. On such terminals, set_color white will result in a grey
font color, while set_color --bold white will result in a white font color.
Not all terminal emulators support all these features. This is not a bug in set_color but a missing feature in the terminal emulator.
set_color uses the terminfo database to look up how to change terminal colors on whatever terminal is in use. Some systems have old and
incomplete terminfo databases, and may lack color information for terminals that support it. Download and install the latest version of
ncurses and recompile fish against it in order to fix this issue.
Version 1.23.1 Sun Jan 8 2012 set_color(1)