ffind: a sane replacement for command line file search
wrongsideofmemphis.com
ffind: a sane replacement for command line file search
1–10 of 40 posts
Re: ffind: a sane replacement for command line file search
#2What are the advantages of this over
mdfind -onlyin . Re: ffind: a sane replacement for command line file search
#3Similarly, I have a little shell function loaded by .zshrc that covers 90% of my use cases:
findit() {
find . -name \* -exec grep -iH $1 {} \;
}Re: ffind: a sane replacement for command line file search
#4What are the advantages of this over mdfind -onlyin .
The author probably wanted a simple command, that required as few parameters as needed.
Re: ffind: a sane replacement for command line file search
#5Alternatively, 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.
Re: ffind: a sane replacement for command line file search
#6From reading this, I'm not entirely sure what makes this better than grep. I get why it is cool to have written it.
Re: ffind: a sane replacement for command line file search
#7Alternatively, 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
#8I 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
#9This ffind isn't this ffind: https://github.com/sjl/friendly-find ?
Re: ffind: a sane replacement for command line file search
#10Similarly, I have a little shell function loaded by .zshrc that covers 90% of my use cases: findit() { find . -name \* -exec grep -iH $1 {} \; }
Author possibly meant something like this (but yeah, same idea)
fffind () { find . -regex ".$1."; }