10-19-2007
Hi Porter,
The script you have given is probably if i know the filename, but in my case i don't know the names of all the files( thats were the problem lies)....I need to find files that have not been changed from past two years by compariing them with respect to the last modified date. Also i am starter to shell scripting so please help me with the complete code. I really appreciate you time to look into this thread.Thanks so much.
Please let me know your thoughts.
Thanks,
Sandeep
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello Mates! I'm kinda new to unix and need to a solve a problem.
Input: date
Situation: With the given date I need to find a list of all such files starting from a given path that were modified after the given date.
I experimented with the "find" with "-newer" but did not quite get it... (4 Replies)
Discussion started by: rkka
4 Replies
2. Shell Programming and Scripting
I am currently running the following Korn shell script which works fine:
#!/usr/bin/ksh
count=`db2 -x "select count(*) from schema.tablename"`
echo "count"
I would like to add a "where" clause to the 2nd line that would allow me to get a record count of all the records from schema.tablename... (9 Replies)
Discussion started by: sasaliasim
9 Replies
3. UNIX for Dummies Questions & Answers
Hello all - I've looked and have not been able to find a "find" command that will list the last modified date of files within a specific directory and its subdirectories. If anyone knows of such a command it would be very much appreciated!
If possible, I would like to sort this output and have... (5 Replies)
Discussion started by: MichaelH3947
5 Replies
4. UNIX for Dummies Questions & Answers
Hi
How to list all the files in a directory that are modified on a particular date?
Also need to know the count,i.e number of files modified on a particular date.
Thanks
Ashok (1 Reply)
Discussion started by: ashok.k
1 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
I'm using Red Hat Linux and want to move some folders and files around but not change the modified date. Is this possible?
I know cp has a -p flag which seems to do what I want, but this is a large volume of data so copying and deleting would not be feasible. (13 Replies)
Discussion started by: Annorax
13 Replies
6. Shell Programming and Scripting
Hi! I am trying to read a file and every line has a specific date as one of its fields.
I want to take that date and compare it to the date today plus 6 days.
while read line
do
date=substr($line, $datepos, 8) #date is expected to be YYYYMMDD
if ; then
...proceed commands
... (1 Reply)
Discussion started by: kokoro
1 Replies
7. Shell Programming and Scripting
Hi All,
Can you please help me to get only the files which has the modified date as yesterday and before?
Thanks in advance!
Regards,
Velava.S (4 Replies)
Discussion started by: velava
4 Replies
8. Shell Programming and Scripting
I get the date that's inside a text file and assigned it to a variable. When I grep the date from the file, I get this,
Not After : Jul 28 14:09:57 2017 GMT
So I only crop out the date, with this command
echo $dateFile | cut -d ':' -f 2,4The result would be
Jul 28 14:57 2017 GMT
How do I... (3 Replies)
Discussion started by: Loc
3 Replies
9. UNIX for Beginners Questions & Answers
Can someone help me with the code wherein there is a file f1.txt with different column and 34 column have expiry date and I need to get that and compare with system date and if expiry date is <system date remove those rows and other rows should be moved to new file f2.txt .
I don't want to delete... (2 Replies)
Discussion started by: Stuti
2 Replies
10. Answers to Frequently Asked Questions
I m working on shell scripting and I m stuck where in my .txt file there is column as expiry date and I need to compare that date with system date and need to remove all the rows where expiry date is less than system date and create a new .txt with update. (1 Reply)
Discussion started by: Stuti
1 Replies
LEARN ABOUT DEBIAN
recollindex
RECOLLINDEX(1) General Commands Manual RECOLLINDEX(1)
NAME
recollindex - indexing command for the Recoll full text search system
SYNOPSIS
recollindex -h
recollindex [ -c <configdir> ] [ -z ] [ -m ] [ -w <seconds> ] [ -D ] [ -x ]
recollindex [ -c <configdir> ] -i [ -f ] [<filename [filename ...]>]
recollindex [ -c <configdir> ] -e [<filename [filename ...]>]
recollindex [ -c <configdir> ] -l
recollindex [ -c <configdir> ] -s <lang>
recollindex [ -c <configdir> ] -S
DESCRIPTION
The recollindex utility allows you to perform indexing operations for the Recoll text search system.
The -c option specifies the configuration directory name, overriding the default or $RECOLL_CONFDIR.
There are several modes of operation.
The normal mode will index the set of files described in the configuration file recoll.conf. This will incrementally update the database
with files that changed since the last run. If option -z is given, the database will be erased before starting.
If option -m is given, recollindex is started for real time monitoring, using the file system monitoring package it was configured for
(either fam, gamin, or inotify). This mode must have been explicitly configured when building the package, it is not available by default.
The program will normally detach from the controlling terminal and become a daemon. If option -D is given, it will stay in the foreground.
Option -w <seconds> can be used to specify that the program should sleep for the specified time before indexing begins. The default value
is 60. The daemon normally monitors the X11 session and exits when it is reset. Option -x disables this X11 session monitoring (daemon
will stay alive even if it cannot connect to the X11 server). You need to use this too if you use the daemon without an X11 context.
recollindex -l will list the names of available language stemmers.
recollindex -i will index individual files into the database. The stem expansion and aspell databases will not be updated. The skippedPaths
and skippedNames configuration variables will be used, so that some files may be skipped. You can tell recollindex to ignore skippedPaths
and skippedNames by setting the -f option. This allows fully custom file selection for a given subtree, for which you would add the top
directory to skippedPaths, and use any custom tool to generate the file list (ie: a tool from a source code control system).
recollindex -e will erase data for individual files from the database. The stem expansion databases will not be updated.
With options -i or -e , if no file names are given on the command line, they will be read from stdin, so that you could for example run:
find /path/to/dir -print | recollindex -e
followed by
find /path/to/dir -print | recollindex -i
to force the reindexing of a directory tree (which has to exist inside the file system area defined by topdirs in recoll.conf).
recollindex -s will build the stem expansion database for a given language, which may or may not be part of the list in the configuration
file. If the language is not part of the configuration, the stem expansion database will be deleted at the end of the next normal indexing
run. You can get the list of stemmer names from the recollindex -l command. Note that this is mostly for experimental use, the normal way
to add a stemming language is to set it in the configuration, either by editing "recoll.conf" or by using the GUI indexing configuration
dialog.
At the time of this writing, the following languages are recognized (out of Xapian's stem.h):
o danish
o dutch
o english Martin Porter's 2002 revision of his stemmer
o english_lovins Lovin's stemmer
o english_porter Porter's stemmer as described in his 1980 paper
o finnish
o french
o german
o italian
o norwegian
o portuguese
o russian
o spanish
o swedish
recollindex -S will rebuild the phonetic/orthographic index. This feature uses the aspell package, which must be installed on the system.
SEE ALSO
recoll(1) recoll.conf(5)
8 January 2006 RECOLLINDEX(1)