Hi
i need to print pathname in which the string present using 'find' command
sample output like this
Pathname String to be searched
---------- --------------------
/usr/test/myfile get
/opt/test/somefile get
Thanks in... (4 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)
I tried awk for this, but failed <or my code is not correct? I dont know>. Can anyone help me on this?
---------- Post updated at 08:34 PM ---------- Previous update was at 08:29 PM ----------
my working file looks like this:
<empty>
<empty>
<empty>
NAME :ABC AGE :15
GENDER... (6 Replies)
I have a file called po.txt. Here is the content of the file:
<!DOCTYPE PurchaseOrderMessage (View Source for full doctype...)>
- <PurchaseOrder>
- <Header>
<MessageId>cdb3062b-685b-4cd5-9633-013186750e10</MessageId>
<Timestamp>2011-08-01T13:47:23.536-04:00</Timestamp>
</Header>
-... (4 Replies)
Hi all,
how to recursively search for a list of keywords in a given directory??
for example:
suppose i have kept all the keywords in a file called "procnamelist" (in separate line)
and i have to search recursively in a directory called "target/dir"
if i am not doing recursive search then... (4 Replies)
I have a file with
<suit:run date="Trump Tue 06/19/2012 11:41 AM EDT" machine="garg-ln" build="19921" level="beta" release="6.1.5" os="Linux">
Need to find word "build" then
extract build number, which is 19921 also
release number, which is 6.1.5 then
concatenate them to one variable as... (6 Replies)
i have a file named keyword.csv(contains around 8k records) which contains a no. of columns.
The 5th column contains all the keywords.
I want to recursively search these keywords in all .pl files(around 1k) and display the filename....Afterthat i will use the filename and some of the column from... (3 Replies)
Hi guys,
I have a text file named file1.txt that is formatted like this:
001 , ID , 20000
002 , Name , Brandon
003 , Phone_Number , 616-234-1999
004 , SSNumber , 234-23-234
005 , Model , Toyota
007 , Engine ,V8
008 , GPS , OFF
and I have file2.txt formatted like this:
... (2 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)
Good Evening Folks -
I have a need to search a specific directory and ALL sub-directories for the following string:
Data Load UpdatedIf this string is found, I need to print content from the line directory above it between symbols, as well as the file name where it is found.
Here is a... (1 Reply)
Discussion started by: SIMMS7400
1 Replies
LEARN ABOUT DEBIAN
cmigrep
CMIGREP(1) General Commands Manual CMIGREP(1)NAME
cmigrep - search in ocaml compiled interface files
SYNOPSIS
cmigrep <options> <module-expression>
DESCRIPTION
This manual page documents briefly the cmigrep command. This manual page was written for the Debian GNU/Linux distribution because the
original program does not have a manual page.
cmigrep allows to search for information in compiled interfaces of OCaml modules. By default, the search applies to the modules described
in the .cmi files in the curent directory and in the ocaml standard directory, but this can be changed with the -I option (see below).
The argument <module-expr> can be an exact module name, or a shell wildcard. Multiple modules can be specified. Example: "ModA ModB
Foo*.Make" means to search ModA, ModB, and any submodule Make of a module that starts with Foo.
OPTIONS
General Options
-I directory
Add directory to the search path for modules
-package packages
comma separated list of findlib packages to search
open modules
comma separated list of open modules (in order!)
-help, --help
display list of options
Search Patterns
-t regexp
print types with matching names
-r regexp
print record field labels with matching names
-c regexp
print constructors with matching names
-p regexp
print polymorphic variants with matching names
-m regexp
print all matching module names in the path
-e regexp
print exceptions with matching constructors
-v regexp
print values with matching names
-o regexp
print all classes with matching names
-a regexp
print all names which match the given expression
SEE ALSO
Examples can be found on /usr/share/doc/cmigrep/README.
AUTHOR
cmigrep is written by Eric Stokes <letaris@mac.com>.
This manual page was compiled by Ralf Treinen <treinen@debian.org>.
CMIGREP(1)