exact file search?
+2
Christopher
Naveen
6 posters
Page 2 of 2 • 1, 2
Re: exact file search?
the foll searches current n the sub directories
find -name doll.txt
find -name doll.txt
jeeva- Posts : 50
Points : 93
Join date : 2010-03-04
Re: exact file search?
jeeva wrote:find -name doll.txt
ya.. it works. it searches sub-directories too.
using contents
is there any possibility that we can search for a file by specifying some content of that file!!!!
jeeva- Posts : 50
Points : 93
Join date : 2010-03-04
Re: exact file search?
@ Jeeva, Is this what you are asking for ?
grep hello * will search for all files containing hello in the current directory.
grep hello * will search for all files containing hello in the current directory.
Maithreyi- Posts : 76
Points : 142
Join date : 2010-03-03
Age : 36
Location : Haldia
Re: exact file search?
In the following command, ' \ ' is called globbing character, this disables the implicit replacement of "NAME" by "*NAME*". I found it in a shell manual.
- Code:
$ locate -b '\NAME'
Re: exact file search?
to know more about 'globbing' character, read this link.
http://en.wikipedia.org/wiki/Glob_%28programming%29
http://en.wikipedia.org/wiki/Glob_%28programming%29
Page 2 of 2 • 1, 2
Similar topics
» read from a file
» Change Owner of a File
» deleting a particular line in a file
» header file is not getting recognised (in Eclipse/C++)
» copying file contents across directories
» Change Owner of a File
» deleting a particular line in a file
» header file is not getting recognised (in Eclipse/C++)
» copying file contents across directories
Permissions in this forum:
You cannot reply to topics in this forum