02-28-2009
Do the log entries have a timestamp?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello
have a file1
H87I
Y788O
T347U
J23U
and
file2 J23U U887Y I99U T556U
file3 I99O J99T F557J
file4 N99I T666U R55Y
file5 H87I T347U
file6 H77U R556Y E44T
file7 Y788O K98U H8I
May be using script we can use file1 to search for all the files
and have the output
H87I file5... (3 Replies)
Discussion started by: cdfd123
3 Replies
2. Shell Programming and Scripting
Hello,
I have a file which has user information. Each user has 2 variables with the same name like
Email: testuser1
Email: testuser1@test.com
Email: testuser2
Email: testuser2@test.com
My intention is to delete the ones without the '@' symbol. When I run this statement awk '/^Email:/&&!/@/'... (6 Replies)
Discussion started by: rmsagar
6 Replies
3. Shell Programming and Scripting
Hi,
can someone help me.
I have some files and search a content in this files. If i have a hit I will print a output:
filename:content
But are more hits in one file: The output is always filename:content
E.G. Seach about "three"
file1 {one, two, three, four, three}
file2... (5 Replies)
Discussion started by: Timmää
5 Replies
4. Shell Programming and Scripting
AT
----------
0
Elapsed: 00:00:00.02
SO
----------
0
Elapsed: 00:00:00.01
SE
----------
0
Elapsed: 00:00:00.01
CR
---------- (4 Replies)
Discussion started by: sandy1028
4 Replies
5. Shell Programming and Scripting
Hi,
Need help in writing a script to read the contents of this file test
Test
00a
00b
00c
00d
00e
00f
where it need to read each line to give a display such as
form meta from dev 00a , config=Striped; add dev 00b:00f to meta 00a
Can any one help me in writing this script (2 Replies)
Discussion started by: praveen1516
2 Replies
6. UNIX for Dummies Questions & Answers
I have a file called po.txt. Here is the content of the file:
<!DOCTYPE PurchaseOrderMessage (View Source for full doctype...)>
- <PurchaseOrder>
- <Header>
<MessageId>cdb3062b-685b-4cd5-9633-013186750e10</MessageId>
<Timestamp>2011-08-01T13:47:23.536-04:00</Timestamp>
</Header>
-... (4 Replies)
Discussion started by: webbi
4 Replies
7. Shell Programming and Scripting
Hi Friends,
This is the only solution to my task. So, any help is highly appreciated.
I have a file
cat input1.bed
chr1 100 200 abc
chr1 120 300 def
chr1 145 226 ghi
chr2 567 600 unix
Now, I have another file by name
input2.bed (This file is a binary file not readable by the... (7 Replies)
Discussion started by: jacobs.smith
7 Replies
8. Shell Programming and Scripting
The file f1 contains the text "body" (shell prompt is "$"):
$ cat ~/path/f1
body
How to print contents of f1 when the f1 path is in a variable?
Here is my failed attempt:
$ f1="~/path/f1"
$ echo $f1
~/path/f1
$ cat $f1
cat: '~/path/f1': No such file or directory (2 Replies)
Discussion started by: wolfv
2 Replies
9. UNIX for Beginners Questions & Answers
Trying to use sed to insert the contents of a file into the end of each line in another file
file1
This is a line
Here is another line
This is yet another line
Here is a fourth line
file2
TEXT
desired output
This is a line TEXT
Here is another line TEXT
This is yet another... (6 Replies)
Discussion started by: jimmyf
6 Replies
10. UNIX for Beginners Questions & Answers
I need to find a file and print its contents
I am trying but it is not working
find -path /opt/app-root/src/.npm/_logs -type f -name "*.log" -print
Version
$ bash -version
GNU bash, version 4.4.12(1)-release (x86_64-pc-msys) (1 Reply)
Discussion started by: SVRao19056
1 Replies
LEARN ABOUT DEBIAN
paranoid::log::buffer
Paranoid::Log::Buffer(3pm) User Contributed Perl Documentation Paranoid::Log::Buffer(3pm)
NAME
Paranoid::Log::Buffer - Log Buffer Functions
VERSION
$Id: Buffer.pm,v 0.83 2010/06/03 19:03:46 acorliss Exp $
SYNOPSIS
use Paranoid::Log;
enableFacility('events', 'buffer', 'debug', '+');
enableFacility('more-events', 'buffer', 'debug', '+', 100);
@messages = Paranoid::Log::Buffer::dump($name);
DESCRIPTION
This module implements named buffers to be used for logging purposes. Each buffer is of a concrete size (definable by the developer) with
a max message length of 2KB. Each message is stored with a timestamp. Once the buffer hits the maximun number of entries it begins
deleting the oldest messages as the new messages come in.
Buffers are created automatically on the fly, and messages trimmed before being stored.
With the exception of the dump function this module is not meant to be used directly. Paranoid::Log should be your exclusive interface for
logging.
When enabling a buffer facility with Paranoid::Log you can add one integral argument to the call. That number defines the size of the log
buffer in terms of number of entries allowed.
NOTE: Buffers are maintained within process memory. If you fork a process from a parent with a log buffer each copy will maintain its own
entries.
SUBROUTINES
/METHODS
NOTE: Given that this module is not intended to be used directly nothing is exported.
init
log
remove
Paranoid::Log::Buffer::dump
@entries = Paranoid::Log::Buffer::dump($name);
This dumps all current entries in the named buffer. Each entry is an array reference to a two-element array. The first element is the
timestamp of the message (in UNIX epoch seconds), the second the actual message itself.
DEPENDENCIES
o Paranoid::Debug
SEE ALSO
o Paranoid::Log
BUGS AND LIMITATIONS
AUTHOR
Arthur Corliss (corliss@digitalmages.com)
LICENSE AND COPYRIGHT
This software is licensed under the same terms as Perl, itself. Please see http://dev.perl.org/licenses/ for more information.
(c) 2005, Arthur Corliss (corliss@digitalmages.com)
perl v5.14.2 2010-06-03 Paranoid::Log::Buffer(3pm)