From reading this, I'm not entirely sure what makes this better than grep. I get why it is cool to have written it.
ffind: a sane replacement for command line file search
11–20 of 40 posts
Re: ffind: a sane replacement for command line file search
#12I looked into his python implementation, I thought he would just translate the parameters and call find, but he instead did go to implement the search algorithm. Wouldn't that make it a bit slower than the original find?
Re: ffind: a sane replacement for command line file search
#13 print -l **/*myfileRe: ffind: a sane replacement for command line file search
#14Re: ffind: a sane replacement for command line file search
#15Alternatively, you may just install locate . It won't examine file contents, but it works in the common cases. It's also blazingly fast because it's indexed.
Its problem that you always have to update the index, which can be problematic in fast changing systems (and quite slow in some cases). The greatest disadvantage is that you need root rights to update the index.
Re: ffind: a sane replacement for command line file search
#16What are the advantages of this over mdfind -onlyin .
Re: ffind: a sane replacement for command line file search
#17Re: ffind: a sane replacement for command line file search
#18Similarly, I have a little shell function loaded by .zshrc that covers 90% of my use cases: findit() { find . -name \* -exec grep -iH $1 {} \; }
find -exec grep -iH ${1?} {} +
Though it still runs grep on directories.Re: ffind: a sane replacement for command line file search
#19Similarly, I have a little shell function loaded by .zshrc that covers 90% of my use cases: findit() { find . -name \* -exec grep -iH $1 {} \; }