888                                   
       888                                   
       888                                   
888d888888888 .d88b. 888d888 .d88b. 88888b.  
888P"  888   d88P"88b888P"  d8P  Y8b888 "88b 
888    888   888  888888    88888888888  888 
888    Y88b. Y88b 888888    Y8b.    888 d88P 
888     "Y888 "Y88888888     "Y8888 88888P"  
                  888               888      
             Y8b d88P               888      
              "Y88P"                888      

      -*- recursive timestamp grep -*-

*** Description:

rtgrep is a bash script which searches for all files located in the current directory or a given base directory which were created or modified within a given time period. The search can be recursive, and you can specify a pattern to be matched in the file contents.

*** Installation:

Download the latest tarball.
Untar the tarball ($ tar xzvf rtgrep-x.x.tar.gz) somewhere in your filesystem.

$ cd rtgrep-x.x/
$ chmod +x rtgrep

For a local installation:

$ cp rtgrep ~/bin

For a system wide installation:

$ su -
$ cp /PATHTO/rtgrep-x.x/rtgrep /usr/bin/

That's all!

*** Usage:

$ rtgrep [-r] [-b BASEDIR] [-p PATTERN] -d DATERANGE

The -d DATERANGE option is mandatory.
The -r option stands for recursive.
The DATERANGE is in the format mmm/dd/yyyy-MMM/DD/YYYY, where mmm and MMM are the short english names of the months (ie: Jan, Feb, Mar, Apr, Jun and so on...).
The pattern is case sensitive and must be in the standard grep syntax (a regular expression).

*** Known bugs:

1.0:
None yet...
... well, if we don't consider the problems with very ugly file/dir names (eg: "Ugly!\ Isn\'t\ it?").

:)

1.1:
All the bugs present (related to dir/file names) in the 1.0 release were fixed. The first tarball of the 1.1 version contained a script that didn't work at all. Uploaded a new one. THIS ONE WORKS AND ROCKS!

*** License:

                    GNU GENERAL PUBLIC LICENSE
                       Version 2, June 1991

 Copyright (C) 1989, 1991 Free Software Foundation, Inc.
                       59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

And so on...

See the COPYING file in the tarball.

*** Feedback:

wrestlerPLEASE@DONTtiscali.SPAMit

SourceForge Logo