I have a file that contains the following:
Mon Dec 3 15:52:57 PST 2o007: FAILED TO PROCESSED FILE 200712030790881200.TXT - exit code=107
Tue Dec 4 09:08:57 PST 2007: FAILED TO PROCESSED FILE 200712030790879200a.TXT - exit code=107
This file also has a lot more stuff since it is a log file.... (2 Replies)
I have the need to search a text file from my unix script to determine if it contains the strings of: 'ERROR' and/or 'WARNING'.
By using Grep I can search the file and return a where one of these strings exists. Like this:
cat myfile.txt | grep ERROR
Output:
PROCESS ERROR HERE ... (3 Replies)
Hi ,
I have a file myhost.txt which contains below,
127.0.0.1 localhost
1.17.1.5 atrpx958
11.17.10.11 atrpx958zone nsybhost
I need to append words only after "atrpx958" like 'myhost' and 'libhost' and not after atrpx958zone.
How to search the word atrpx958 only in... (2 Replies)
Hi ,
I have a file myhost.txt which contains below,
127.0.0.1 localhost
1.17.1.5 atrpx958
11.17.10.11 atrpx958zone nsybhost
I need to append words only after "atrpx958" like 'myhost' and 'libhost' and not after atrpx958zone.
How to search the word atrpx958(which is hostname) only,... (5 Replies)
i want to search a log for occurrences of words and i want the result to tell me how many lines in the log contained each word.
if i type a command like this:
egrep "cat|dog|monkey|bananas|bike" logfile
i would like a response like this:
cat=3,dog=17,monkey=1,bananas=102,bike=51
the... (12 Replies)
I have a long list of alphanumberic words (no spaces or characters) in file1.txt I need to check for the existance of each of the words from file1.txt against file2.txt and if the word is NOT in file2.txt, I need to know about it, either standard output or redirect to file3.txt
For example:... (5 Replies)
Hi,
Need your help for this scripting issue I have. I am not really good at this, so seeking your help.
I have a file looking similar to this:
Hello, i am human and name=ABCD.
How are you?
Hello, i am human and name=PQRS.
I am good.
Hello, i am human and name=ABCD.
Good bye.
Hello, i... (12 Replies)
Hi All
I have to search servers name say like 1000+ "unique names" line by line in child.txt files in another file that is a master file where all server present say "master.txt",if child.txt's server name matches with master files then it print yes else no with server name. (4 Replies)
hi,
i need to replace all words in any quote position and then need to change the words inside the file thousand of raw.
textfile data :
"Ninguno","Confirma","JuicioABC"
"JuicioCOMP","Recurso","JuicioABC"
"JuicioDELL","Nulidad","Nosino"
"Solidade","JuicioEUR","Segundo"
need... (1 Reply)
Discussion started by: benjietambling
1 Replies
LEARN ABOUT DEBIAN
odffilesearch
ODFFILESEARCH(1p) User Contributed Perl Documentation ODFFILESEARCH(1p)NAME
odffilesearch - File selection by keywords
SYNOPSIS
odffilesearch -R "D:Documents*.odt" openoffice desktop XML
produces the list of the ODF Text documents present in the given
directory and its subdirectories, and containing the words
"openoffice", "desktop" AND "XML"
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>
DESCRIPTION
This utility allows the user to retrieve a list of files matching
a given set of keywords or regular expressions. A file is selected
when 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 per
line), so this utility can be used as a filter piping its results
to another program. Alternatively, a given shell command can be
launched by the script each time a file matches, allowing on-the-fly
processing 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 several
directories and/or several filename patterns.
All the arguments after the file filter are processed as search
criteria.
OPTIONS -R -recursive
include the subdirectories of each given search directory
-verbose -trace -debug
echo some processing comments
-warnings
activate the warning messages of the OpenOffice::OODoc API
-log <file>
like -verbose, but then messages are sent to the given file
and don't pollute the standard output
-result <file>
-output <file>
send the list of matching files to the given file and not
to the standard output
-criteria <file>
get search criteria from a file (one per line); the loaded
search keywords may be combined with additional criteria
passed with the command line, if any.
-command <command> -exec <command>
execute a shell command for each matching file ; if the
command string contains "%f", this substring is replaced
with the name of the selected file ; if this option is
provided, the selection list is not echoed to the standard
output ; if -verbose is on, the value returned by the
command is echoed
-encoding <encoding>
selects the user's character set ; this option is mandatory
if one or more search criteria contain characters not
belonging to the default character set
perl v5.14.2 2008-05-04 ODFFILESEARCH(1p)