Dear All
I had below mention file as my input file.
87980457 Jan 12 2008 2:00AM 1 60 BSC1
81164713 Jan 12 2008 3:00AM 1 60 BSC2
78084521 Jan 12 2008 4:00AM 1 60 BSC3
68385193... (3 Replies)
Hi
I have a file with one column. There are a few replicas in this column, that is some lines look exactly the same. I want to know the ones that occur twice.
Inputfile.xml
"AAH.dbEUR"
"ECT.dbEUR"
"AEGN.dbEUR"
"AAH.dbEUR"
"AKZO.dbEUR"
...
Here I would like to be informed that... (7 Replies)
Hi ,
I have a directory structure as dir and subdirectories and files under it and so on.now I need to find the files which contain the search string under every dir and subdir and replace .
my search string is like
searchstring=/a/b
string to be replaced=/a/c/b
please help.
... (7 Replies)
Hi All,
My file looks like :
hsdhj dsajhf jshdfajkh jksdhfj jkdhsfj
shfjhd shdf hdsfjkh jsdfhj hdshf
sdjh dhs foot dsjhfj jdshf
dasfh jdsh dsjfh jdfshj david
Now, I want to search entire column by a string... (10 Replies)
grep pattern filename
To search for the pattern in all files in the current directory and the sub-directories recursively, what needs to be substituted in filename? (1 Reply)
Hi there,
I am using AIX and trying to search and replace a string with another string in multiple files in different directories.
I wanted to search replace in steps so I don't change all of the instance anywhere in the server at once, minimizing impact.
STEP 1:
--------
I first searched... (5 Replies)
Hi,
How can I use find command to search string/pattern in a file recursively?
What I tried:
find . -type f -exec cat {} | grep "make" \;
Output:
grep: find: ;: No such file or directory
missing argument to `-exec'
And this:
find . -type f -exec cat {} \; -exec grep "make" {} \;... (12 Replies)
I have 3 files. Each of those files have the same number of records, however certain records have different values. I would like to grep the field in ALL 3 files and display the output with only the differences in column wise and if possible line number
File1
Name = Joe
Age = 33... (3 Replies)
I'm interested to match column pattern through awk using an external variable for data:
-9 1:751343:T:A -9 0 T A 0.726 -5.408837e-03 9.576603e-03 7.967536e-01 5.722312e-01
-9 1:751756:T:C -9 0 T C 0.727 -5.360458e-03 9.579447e-03 7.966977e-01 5.757858e-01... (7 Replies)
Hi All,
I hope somebody would be able to help me.
I would need to search a string coming from a file, example file.txt:
dog
cat
goat
horse
fish
For every string, I would need to know if there are any files inside a directory(recursively) that contains the string regardless of case.... (9 Replies)
Discussion started by: kokoro
9 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)