In addition to what RudiC has already suggested, you also need to realize that a string in the format you are prompting for (YYYYMMDD) is not going to work well to compare against a string in the format MM/DD/YYYY which is what you said works with your existing pipeline.
And that if the pipeline matching against [04/26/2016][03:30:00.000] (note that there is no space in this pattern) works, then a command that puts a space between the expansion of the Date and Time variables (as in
can't work). And, furthermore, if you are reading a variable named date, you need to reference the contents of that variable using $date (NOT $Date).
Hello evrebody ,
I have HPUX-11, i try to install "Mozilla" and "unzip utillity"
I cannot decompress file (F.tar.gz) or file(F.gz) by commandes:
gunzip -dv F.tar.gz | tar -xvf
gunzip F.tar.gz
or
gzip -dv F.tar.gz |tar -xvf
gzip F.gz
maybe someone know What's the reason?
maybe i... (1 Reply)
Hi all,
I have a large log file that gets created daily.
I need to be able to pull text out of the log when I hit a pattern including the 7 lines above it and the 3 lines below and output it to a new text file.
Line 1
Line 2
Line 3
Line 4
Line 5
Line 6
Line 7
Pattern
Line 9
Line 10... (11 Replies)
Hi,
I am getting this error
gunzip file1.tar.Z
gunzip: file1.tar.Z: not in gzip format
Any clues? This goes bad only in some recent installations of ids (5 Replies)
Environment:
ServerA - IBM AIX 5.2
ServerB - IBM AIX 5.2
I want to clone one of my oracle installation. The easiest way is to ZIP(possibly use gzip) the installed folder from the ServerA (Here Oracle is installed and working fine) , FTP to the ServerB(Here I want to have the installation... (4 Replies)
Hi,
Can anyone let me explain the difference between tar , uncompress,gzip and gunzip commands.
both gzip and gunzip are same i think correct me if am wrong. (1 Reply)
Hi
I have a log file, with lines of following kind.
------------------------
2009-05-15 07:49:42,574 INFO - SqlMapObjectDataDao - select - selectObject - 2 ms
2009-05-15 07:49:42,575 INFO - SqlMapUserDao - select - getUserSystemAdminSuperGroup - 0 ms
2009-05-15 07:49:42,576 INFO -... (3 Replies)
Hi all,
i have a gzipped file. <file_name>.gz . when i try gunzip this file i get,
invalid compressed data--format violated
this file gzipped like gzip -f -S <file_name> 2 > <error_log_file>
there is no error in log. it seems that the file gzipped properly. how this
... (3 Replies)
Ok here is my trouble. I run scripts whenever I am investigating problems. One of those scripts simply goes to a log folder and runs
gzip -cd * | grep error | wc -l
This tells me the number of errors in their log's and how much I should pay attention to them.
The problem is sometimes... (3 Replies)
hello everyone. newbie here in unix. I am trying to extract the logs of a certain job and would like to output it in a readable format, see below the CAT part:
cat /var/opt/ctma/ctm/sysout/idwesct_sh30_eng_r6_cdcs_sh.LOG_05l0du_000* | egrep -i 'orderid:|file_name=' | sed... (1 Reply)
Hi,
Below is the description of my problem.
I am trying to loop through the below file names sitting in the file - FileNames.txt, and trying to decompress them
FileNames.txt
20150408_MGAC_.txt.gz
20150408_MGCC_.txt.gz
20150408_MGSH__.txt.gz
20150408_MGSL__.txt.gz
... (6 Replies)
Discussion started by: Richmond_CS
6 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)