odffilesearch1p
Usage
odffilesearch -R
"D:\Documents\*.odt"
openoffice
desktop
XML
produces the
list
of
the
ODF
Text
documents
present
in
the
given
odffilesearch -command
"rm
-f
%f"
"*.ods
*.odt"
lost
dismiss
cancel
executes the
"rm
-f
filename"
(i.e.
deletes
the
file
in
a
Unix
system)
for each
ODT
or
ODS
file
present
in
the
current
directory
and containing
the
words
"lost",
"dismiss"
AND
"cancel"
Usage
odffilesearch [-options] <file filter> <keyword list>
Overview
This utility allows the user to retrieve a list of files matchinga given set of keywords or regular expressions. A file is selectedwhen it contains, in its text and/or in its metadata (title, subject,keywords or description), all the given search strings.The selected files are echoed to the standard output (one file perline), so this utility can be used as a filter piping its resultsto another program. Alternatively, a given shell command can belaunched by the script each time a file matches, allowing on-the-flyprocessing of the selected documents.The files filter may content one or more space-separated paths.Each path may content jokers. So it's possible to explore severaldirectories and/or several filename patterns.All the arguments after the file filter are processed as searchcriteria.
Options
-R -recursiveinclude the subdirectories of each given search directory-verbose -trace -debugecho some processing comments-warningsactivate the warning messages of the OpenOffice::OODoc API-log <file>like -verbose, but then messages are sent to the given fileand don't pollute the standard output-result <file>-output <file>send the list of matching files to the given file and notto the standard output-criteria <file>get search criteria from a file (one per line); the loadedsearch keywords may be combined with additional criteriapassed with the command line, if any.-command <command> -exec <command>execute a shell command for each matching file ; if thecommand string contains "%f", this substring is replacedwith the name of the selected file ; if this option isprovided, the selection list is not echoed to the standardoutput ; if -verbose is on, the value returned by thecommand is echoed-encoding <encoding>selects the user's character set ; this option is mandatoryif one or more search criteria contain characters notbelonging to the default character set
Releases
8 releases since Debian 6.0 (Squeeze); the text changed 4 times.