Sponsored Content
Top Forums Shell Programming and Scripting using find to get all of yesterdays files Post 302231296 by vidyadhar85 on Tuesday 2nd of September 2008 04:09:53 AM
Old 09-02-2008
find . -type f -atime 1

Last edited by vidyadhar85; 09-02-2008 at 05:24 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

yesterdays files

I am new to UNIX and I am trying to write a shell script. I want to be able to list all files that were created with yesterdays dates (APR 29 as an example) that are not 0 file size.Then in those files I want to look for the string 'Process Complete' and list all files that DONT have that string.... (8 Replies)
Discussion started by: tonydsam
8 Replies

2. Shell Programming and Scripting

yesterdays date

To get yesterays date, execute the command : TZ=aaa24 date +%Y%m%d Output format will be yyyymmdd (2 Replies)
Discussion started by: sujju1985
2 Replies

3. UNIX for Dummies Questions & Answers

How to get yesterdays julian date

Hi, Was using date +%Y%j to get current julian date. Can anyone let me know how can I get y'day's julin date. Thx Did check FAQ but couldn't find anything. Thanks. (3 Replies)
Discussion started by: er_ashu
3 Replies

4. UNIX for Dummies Questions & Answers

Need to pull Yesterdays Date...

I tried this and it works for the most part, but if the date is 20090301, it displays 20090300. YESTERDAY=$((`date +%Y%m%d` -1)) (2 Replies)
Discussion started by: cards0622
2 Replies

5. Shell Programming and Scripting

Filtering the yesterdays date from log files via script.

hi All, I have this sample text file - access.log: Jan 18 21:34:29 root 209.151.232.70 Jan 18 21:34:40 root 209.151.232.70 Jan 18 21:34:43 root 209.151.232.70 Jan 18 21:34:56 root 209.151.232.70 Jan 18 21:35:10 root 209.151.232.70 Jan 18 21:35:23 root 209.151.232.70 Jan 18 21:36:04 root... (2 Replies)
Discussion started by: linuxgeek
2 Replies

6. Shell Programming and Scripting

How to find yesterdays file - shell script

Hey guys - i have a script (below) that searches for current files in a particular directory. However i was wondering how to make it search for "yesterdays" file. For instance it looks for a file from yesterday and no older than that. I used stat command to check for file information: ... (6 Replies)
Discussion started by: DallasT
6 Replies

7. Shell Programming and Scripting

how to get the yesterdays date?

Hi All, Can anybody help me to get the yesterdays date in perl script. My script is as below #!/bin/perl -w $yes=system("TZ=IST+24 date +%d-%m-%Y"); print "$yes\n"; script is writting the date but with 0 pls see the output below #!/bin/perl -w $yes=system("TZ=IST+24 date... (2 Replies)
Discussion started by: jam_prasanna
2 Replies

8. Shell Programming and Scripting

How to list todays and yesterdays .rej files from a directory?

I am trying to display todays and yesterdays .rej files from a directory. ls -lrt *.rej | grep 'Aug 12' ; ls -lrt *.rej | grep 'Aug 13' Which is working as above. But i want take 'Aug 12' and 'Aug 13' from a variable and the command should work everyday. I am able to get todays files by... (9 Replies)
Discussion started by: GopalKrishnaP
9 Replies

9. UNIX for Dummies Questions & Answers

Using xargs To Delete Yesterdays File

Using the find command to find files in a directory and automatically delete files older than 24 hours find . -mtime +0 | grep file | xargs rm. Using the find man page but I can't seem to make it work for files that have the previous day's time stamp but are not 24 hours old. Is there a way for... (4 Replies)
Discussion started by: jimmyf
4 Replies

10. UNIX for Beginners Questions & Answers

Logrotate and Compressing only yesterdays files

Hello, I have a syslog server at home and am currently experiencing an issue where my logs will rotate and compress however it will rotate and compress yesterdays file and the newly created log file for the current day. When it does this however it will also create another new file for today... (9 Replies)
Discussion started by: MyUserName7000
9 Replies
Mail::SpamAssassin::BayesStore::MySQL(3)		User Contributed Perl Documentation		  Mail::SpamAssassin::BayesStore::MySQL(3)

NAME
Mail::SpamAssassin::BayesStore::MySQL - MySQL Specific Bayesian Storage Module Implementation SYNOPSIS
DESCRIPTION
This module implements a MySQL specific based bayesian storage module. It requires that you are running at least version 4.1 of MySQL, if you are running a version of MySQL < 4.1 then several aspects of this module will fail and possibly corrupt your bayes database data. In addition, this module will support rollback on error, if you are using the InnoDB database table type in MySQL. For more information please review the instructions in sql/README.bayes. METHODS
token_expiration public instance (Integer, Integer, Integer, Integer) token_expiration(\% $opts, Integer $newdelta, @ @vars) Description: This method performs the database specific expiration of tokens based on the passed in $newdelta and @vars. seen_put public (Boolean) seen_put (string $msgid, char $flag) Description: This method records $msgid as the type given by $flag. $flag is one of two values 's' for spam and 'h' for ham. seen_delete public instance (Boolean) seen_delete (string $msgid) Description: This method removes $msgid from the database. set_last_expire public instance (Boolean) set_last_expire (Integer $time) Description: This method sets the last expire time. set_running_expire_tok public instance (String $time) set_running_expire_tok () Description: This method sets the time that an expire starts running. remove_running_expire_tok public instance (Boolean) remove_running_expire_tok () Description: This method removes the row in the database that indicates that and expire is currently running. nspam_nham_change public instance (Boolean) nspam_nham_change (Integer $num_spam, Integer $num_ham) Description: This method updates the number of spam and the number of ham in the database. tok_touch public instance (Boolean) tok_touch (String $token, String $atime) Description: This method updates the given tokens ($token) atime. The assumption is that the token already exists in the database. tok_touch_all public instance (Boolean) tok_touch (@ $tokens String $atime) Description: This method does a mass update of the given list of tokens $tokens, if the existing token atime is < $atime. The assumption is that the tokens already exist in the database. We should never be touching more than N_SIGNIFICANT_TOKENS, so we can make some assumptions about how to handle the data (ie no need to batch like we do in tok_get_all) cleanup public instance (Boolean) cleanup () Description: This method peroms any cleanup necessary before moving onto the next operation. clear_database public instance (Boolean) clear_database () Description: This method deletes all records for a particular user. Callers should be aware that any errors returned by this method could causes the database to be inconsistent for the given user. Private Methods _connect_db private instance (Boolean) _connect_db () Description: This method connects to the SQL database. _initialize_db private instance (Boolean) _initialize_db () Description: This method will check to see if a user has had their bayes variables initialized. If not then it will perform this initialization. _put_token private instance (Boolean) _put_token (string $token, integer $spam_count, integer $ham_count, string $atime) Description: This method performs the work of either inserting or updating a token in the database. _put_tokens private instance (Boolean) _put_tokens (\% $tokens, integer $spam_count, integer $ham_count, string $atime) Description: This method performs the work of either inserting or updating tokens in the database. perl v5.16.3 2011-06-06 Mail::SpamAssassin::BayesStore::MySQL(3)
All times are GMT -4. The time now is 11:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy