Find File

Felix Miata mrmazda at ij.net
Tue Oct 9 01:01:28 UTC 2007


On 2007/10/09 02:32 (GMT+0200) Alexander Kriegisch apparently typed:

> Felix Miata wrote:

>> How does one search the whole / filesystem for files containing some
>> string without mc getting lost in recursive searches of multiple
>> "copies" of /dev/core?

> If you want to know how to use MC's search function in a way that
> excludes symlinks, I second the request. You probably want to do
> something like this:

> find . -name 'foo*.c' -type f | xargs grep -E "TODO:.*refactor"

> The "-type f" makes sure we do not see symlinked files multiple times.

Symlinks aren't my main problem here. MC's find funtion often lists the exact
same unsymlinked file several or even dozens of times, and performs the
search all over again on each of the "duplicates" it finds of the same file.
Every time the search is allowed to look into /proc and/or /dev, it always
fines the string as a part of its own process in the kernel core. That
wouldn't bother me except for the recursion from adding each find back into
the core for it to hunt again as a "different" file.
-- 
"The basis of our Bill of Rights comes from the teachings
we get from Exodus and St. Matthew, from Isaiah and St.
Paul.	                       President Harry S. Truman

 Team OS/2 ** Reg. Linux User #211409

Felix Miata  ***  http://mrmazda.no-ip.com/



More information about the mc mailing list