hello,
I want to grep the log file according to time and get the portion of log from one particular time to other.
I can grep for individual lines by time but how should I print lines continuously from given start time till end till given end time.
Appreciate your ideas,
Thanks
chandra (8 Replies)
hi guys i need to extract information from log files generated by an application.
log file has the following lines for each process..
----------------------------------------------
Fri Aug 03 12:06:43 WST 2007 INFO: Running project PROJECT1
Fri Aug 03 12:06:43 WST 2007 INFO: Source Files... (7 Replies)
I am using Unix on Mac OS X 10.5.6.
I am trying to extract the last entry of a log (text) file. As seen below, each log entry looks like the following (date and time change with each log entry):
I want the script to extract everything quoted above, including the "===" dividers.
... (2 Replies)
I regularly extract lines of text from files based on the presence of a particular keyword; I place the extracted lines into another text file. This takes about 2 hours to complete using the "sort" command then Kate's find & highlight facility.
I've been reading the forum & googling and can find... (4 Replies)
Hi Gurus
I'm using HPUX B.11.23 ia64, the below sample log data was extracted from HPUX commnad: last -R.
Sample data:
root pts/ta userpc Wed Aug 11 09:46 - 20:21 (10:35)
root pts/ta userpc Wed Aug 11 09:44 - 20:10 (10:34)
root pts/ta userpc Wed Aug 11... (4 Replies)
I have a huge file (about 2 millions records) contains data separated by “,” (comma). As part of the requirement, I can't change the format. The objective is to remove some of the records with the following condition. If the 23rd field on each line start with 302 , I need to remove that from the... (4 Replies)
I have a LOG file which looks like this
Import started at: Mon Jul 23 02:13:01 EDT 2012
Initialization completed in 2.146 seconds.
--------------------------------------------------------------------------------
--
Import summary for Import item: PolicyInformation... (8 Replies)
I have a folder containing text files. I need to extract specific lines from the files of this folder based on another file input.txt. How can I do this with awk/sed?
file1
ARG 81.9 8 81.9 0
LEU 27.1 9 27.1 0
PHE .0 10 .0 0
ASP 59.8 11 59.8 0
ASN 27.6 12 27.6 0
ALA .0 13 .0 0... (5 Replies)
I have an input file with
A=xyz
B=pqr
I would want the value in Second Field (xyz or pqr) updated with a value present in Shell Variable based on the value passed in the first field. (A or B )
while read line
do
NEW_VALUE = `some functionality done on $line`
If $line=First Field-... (1 Reply)
Discussion started by: infernalhell
1 Replies
LEARN ABOUT DEBIAN
jifty::plugin::testserverwarnings
Jifty::Plugin::TestServerWarnings(3pm) User Contributed Perl Documentation Jifty::Plugin::TestServerWarnings(3pm)NAME
Jifty::Plugin::TestServerWarnings - Stores server warnings away for later fetching
SYNOPSIS
# In your jifty config.yml under the framework section:
Plugins:
- TestServerWarnings:
clear_screen: 1
DESCRIPTION
This plugin add a new appender Jifty::Plugin::TestServerWarnings::Appender on the first request it sees, which stores away all messages it
receives. It also removes the default "Screen" appender unless clear_screen in config.yml is set to be false or env TEST_VERBOSE is true.
The warnings can be retrieved by a client-side process by calling "decoded_warnings" with a base URI to the server.
This plugin is automatically added for all jifty tests.
METHODS
init
set clear_screen to 1 if the clear_screen in config.yml is set to be true, if it's not set at all, set it to 1 if TEST_VERBOSE is set to be
true.
new_request
On the first call to new_request, the plugin adjusts the appenders. This causes it to only have effect if it is run in a forked server
process, not in a test process. If "TEST_VERBOSE" is set, it does not remove the Screen appender.
add_warnings WARN, WARN, ..
Takes the given warnings, and stores them away for later reporting.
stashed_warnings
Returns the stored warnings, as a list. This does not clear the list, unlike "encoded_warnings" or "decoded_warnings".
encoded_warnings
Returns the stored warnings, encoded using Storable. This also clears the list of stashed warnings.
decoded_warnings URI
Given the URI to a jifty server with this plugin enabled, retrieves and decodes the stored warnings, returning them. This will also clear
the server's stored list of warnings.
perl v5.14.2 2010-09-25 Jifty::Plugin::TestServerWarnings(3pm)