02-07-2012
Your requirement doesn't see to be real.
what about the date?
Does your database/file contain the data only for the sysdate?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i want to compare the timestamp of the 2 file..
please let me know how we can achive this.. (2 Replies)
Discussion started by: mail2sant
2 Replies
2. AIX
I want to read a log file from a particular location.In the logfile , lines contains timestamp.I need to compare the timestamp in the logfile with the current date.If the timpestamp in the log file is less than 4 hours then i need to read the file from that location.Below is the file format.Please... (1 Reply)
Discussion started by: achu
1 Replies
3. AIX
I want to read a log file from a particular location.In the log file each line starts with timestamp.I need to compare the timestamp in the logfile with the current date.If the timpestamp in the log file is less than 4 hours then i need to read the file from that location.Below is the file... (1 Reply)
Discussion started by: achu
1 Replies
4. Shell Programming and Scripting
Hello,
I've created the script below to compare the content of two files with a delay of an hour. After an hour, the lines that exist in both files, will be printed and executed.
The script now uses a counter to countdown 50 minutes. But what I would prefer is to check the file timestamp of... (3 Replies)
Discussion started by: taipan
3 Replies
5. Shell Programming and Scripting
I'm trying to compare 2 dates between current time and the timestamp on a file.
The date format is mmdd
Both return Apr 1 but when using if statement
line 11: Apr 1: command not found error is returned
#!/bin/sh
log="DateLog"
Current_Date=`date +%b%e`
Filepmdate=`ls -l /file.txt |... (1 Reply)
Discussion started by: cillmor
1 Replies
6. Shell Programming and Scripting
Hi,
I've a file in the following format
1999-APR-8 17:31:06 1500 3 45
1999-APR-8 17:31:15 1500 3 45
1999-APR-8 17:31:25 1500 3 45
1999-APR-8 17:31:30 1500 3 45
1999-APR-8 17:31:55 1500 3 45
1999-APR-8 17:32:06 1500 3 ... (1 Reply)
Discussion started by: vaibhavkorde
1 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
I am new to unix programming. I am trying for a requirement and the requirement goes like this.....
I have a test folder. Which tracks log files. After certain time, the log file is getting overwritten by another file (randomly as the time interval is not periodic). I need to preserve... (2 Replies)
Discussion started by: mailsara
2 Replies
8. Shell Programming and Scripting
Hi Friends,
I have the following logfile. Currently time in india is 07/31/2014 12:33:34 and i have the following content in logfile. I want to display only those entries which contain string 'Exception' within last 3 hours. In this case, it would be the last line only
I can get the... (12 Replies)
Discussion started by: srkmish
12 Replies
9. Shell Programming and Scripting
Hello ,
I am working on AIX. I have to convert Unix timestamp to normal timestamp. Below is the file. The Unix timestamp will always be preceded by
EFFECTIVE_TIME as first field as shown and there could be multiple EFFECTIVE_TIME in the file : 3.txt
Contents of... (6 Replies)
Discussion started by: rahul2662
6 Replies
10. Shell Programming and Scripting
So basically I have a log file and each line in this log file starts with a timestamp:
MON DD HH:MM:SS
SEP 15 07:30:01
I need to grep all the lines between last hour timestamp and current timestamp. Then these lines will be moved to a tmp file from which I will grep for particular strings. ... (1 Reply)
Discussion started by: nms
1 Replies
LEARN ABOUT DEBIAN
lbdb-fetchaddr
LBDB-FETCHADDR(1) User Manuals LBDB-FETCHADDR(1)
NAME
lbdb-fetchaddr - grab addresses from mails add append them to lbdb database
SYNOPSIS
lbdb-fetchaddr [-d dateformat] [-x headerfieldlist] [-c charset] [-a]
lbdb-fetchaddr [-v|-h]
DESCRIPTION
lbdb-fetchaddr is a shell script which reads a mail on stdin. It extracts the contents of some header fields (default: `From:', `To:',
`Cc:', `Resent-From:', and `Resent-To:') from the mail header (only addresses with a real name) and appends them to
$HOME/.lbdb/m_inmail.list. For performance issues lbdb-fetchaddr appends new addresses to this file without removing duplicates. To get
rid of duplicates, the program lbdb-munge exists, which is run by m_inmail if needed and removes duplicates.
To use this program, put the following lines into your $HOME/.procmailrc:
:0hc
| lbdb-fetchaddr
lbdb-fetchaddr writes the actual date to the third column of the database by using strftime(3). It uses "%Y-%m-%d %H:%M" as the default
date format (e.g. "1999-04-29 14:33"). You can change this by using the -d option to select a different date format string as parameter of
lbdb-fetchaddr command like
:0hc
| lbdb-fetchaddr -d "%y-%m-%d"
which results in e.g. "99-04-29".
OPTIONS
-v Print version number of lbdb-fetchaddr.
-h Print short help of lbdb-fetchaddr.
-d dateformat
Use the given date format using strftime(3) syntax.
-x headerfields
A colon separated list of header fields, which should be searched for mail addresses. If this option isn't given, we fall back to
`from:to:cc:resent-from:resent-to'.
-c charset
The charset which will be used to write the database. This should be the charset which the application expects (normally the one
from your current locale). If this option isn't given, we fall back to `iso-8859-15'.
-a Also grab addresses without a real name. Use the local part of the mail address as real name.
FILES
$HOME/.lbdb/m_inmail.list
/usr/lib/lbdb/fetchaddr
/usr/lib/lbdb/m_inmail
SEE ALSO
lbdbq(1), lbdb_dotlock(1), procmail(1), procmailrc(5), strftime(3).
CREDITS
Most of the really interesting code of this program (namely, the RFC 822 address parser used by lbdb-fetchaddr) was stolen from Michael
Elkins' mutt mail user agent. Additional credits go to Brandon Long for putting the query functionality into mutt.
AUTHOR
The lbdb package was written by Thomas Roessler <roessler@guug.de> and is now maintained and extended by Roland Rosenfeld <roland@spin-
naker.de>.
Unix October 2005 LBDB-FETCHADDR(1)