hi all,
I'm trying to do a cp only on files I created on a given day or within a certain date range.
What's the best way to do this?
Cheers,
KL (1 Reply)
Hi Experts,
I have files name
report_20090416
report_20090417
report_20090418
report_20090420
report_20090421
I have 2 input from user
From Date: 20090417
To Date: 20090420
and I need to grep only those line in between. Output should be
report_20090417
report_20090418... (3 Replies)
Hi ,
I need a function that verfies the given date is between start date and end date .
I have written this but this not working if start date is 1900/01/01
Below is my code
validateDate()
{
RC=$#
if
then
return 0
else
... (2 Replies)
I have a number of instances wher I need to run reports for the previous month and need to include the last months date range in the sql.
I want to create a string which consists of the first and last dates of last month separated with an ' and ' ie for this month (Feb) I want it to say
'01/01/10... (3 Replies)
Hi All,
Can anybody help me out a Shell script which pulls the files based on date range
Example
./test.sh start_date End_date (20110901 20110930)
or
./test.sh ( if we don't provide any input)
it should take sysdate-1 ( yesterdays date)
it should have both conditions
Plzz help me... (1 Reply)
Hi Everyone How all are doing today,
Want some help from All in Unix, What I am trying to do is , A shell file should be a called with two date parameters suppose the shell file name is run.sh
run.sh <start_date> <end_date>
If end date is not given it will pick today's date. The date should... (7 Replies)
Solaris 10
ksh88
Sorry for re-hashing some of this, but I can't find a proper solution in the forums.
Starting with /a/archive containing (on and on date formatted directories)
20060313 20080518 20100725 20121015
20060314 20080519 ... (1 Reply)
Hi
i am try to run a script by using a dates here is what i am doing
EXPORTDATE=`date --date "2 days ago" +%Y-%m-%d`
sh /path/to/the/files.sh ${EXPORTDATE}
the above code runs the job for one day,if i want to run the job for all the past 4 days how can i pass the date as a... (1 Reply)
My unix version is IBM AIX Version 6.1
I tried google my requirement and found the below answer,
find . -newermt “2012-06-15 08:13" ! -newermt “2012-06-15 18:20"
But newer command is not working in AIX version 6.1 unix
I have given my requirement below:
Input:
atr files:
... (1 Reply)
Dear all,
how can I select in the file below only the files created between Aug 14 2014 and Feb 03 2015?
EZA2284I -rw-r--r-- 1 30 8 356954 Aug 15 2014 file1
EZA2284I -rw-rw-r-- 1 30 8 251396 Feb 05 12:53 file2
EZA2284I -rw-rw-r-- 1 30 8 ... (3 Replies)
Discussion started by: simomuc
3 Replies
LEARN ABOUT DEBIAN
log::log4perl::appender::screencoloredlevels
Appender::ScreenColoredLevels(3pm) User Contributed Perl Documentation Appender::ScreenColoredLevels(3pm)NAME
Log::Log4perl::Appender::ScreenColoredLevel - Colorize messages according to level
SYNOPSIS
use Log::Log4perl qw(:easy);
Log::Log4perl->init( <<'EOT');
log4perl.category = DEBUG, Screen
log4perl.appender.Screen =
Log::Log4perl::Appender::ScreenColoredLevels
log4perl.appender.Screen.layout =
Log::Log4perl::Layout::PatternLayout
log4perl.appender.Screen.layout.ConversionPattern =
%d %F{1} %L> %m %n
EOT
# Appears black
DEBUG "Debug Message";
# Appears green
INFO "Info Message";
# Appears blue
WARN "Warn Message";
# Appears magenta
ERROR "Error Message";
# Appears red
FATAL "Fatal Message";
DESCRIPTION
This appender acts like Log::Log4perl::Appender::Screen, except that it colorizes its output, based on the priority of the message sent.
You can configure the colors and attributes used for the different levels, by specifying them in your configuration:
log4perl.appender.Screen.color.TRACE=cyan
log4perl.appender.Screen.color.DEBUG=bold blue
You can also specify nothing, to indicate that level should not have coloring applied, which means the text will be whatever the default
color for your terminal is. This is the default for debug messages.
log4perl.appender.Screen.color.DEBUG=
You can use any attribute supported by Term::ANSIColor as a configuration option.
log4perl.appender.Screen.color.FATAL=
bold underline blink red on_white
The commonly used colors and attributes are:
attributes
BOLD, DARK, UNDERLINE, UNDERSCORE, BLINK
colors
BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE
background colors
ON_BLACK, ON_RED, ON_GREEN, ON_YELLOW, ON_BLUE, ON_MAGENTA, ON_CYAN, ON_WHITE
See Term::ANSIColor for a complete list, and information on which are supported by various common terminal emulators.
The default values for these options are:
Trace
Yellow
Debug
None (whatever the terminal default is)
Info
Green
Warn
Blue
Error
Magenta
Fatal
Red
The constructor "new()" takes an optional parameter "stderr", if set to a true value, the appender will log to STDERR. If "stderr" is set
to a false value, it will log to STDOUT. The default setting for "stderr" is 1, so messages will be logged to STDERR by default. The
constructor can also take an optional parameter "color", whose value is a hashref of color configuration options, any levels that are not
included in the hashref will be set to their default values.
COPYRIGHT AND LICENSE
Copyright 2002-2009 by Mike Schilli <m@perlmeister.com> and Kevin Goess <cpan@goess.org>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2010-07-21 Appender::ScreenColoredLevels(3pm)