Re:ffind: a sane replacement for command line file search
by msluyter on Sunday June 09, 2013 @09:37AM
(#5848860)
Similarly, I have a little shell function loaded by .zshrc that covers 90% of my use cases:
[ Parent
| on HN ]
Re:ffind: a sane replacement for command line file search
by knome on Sunday June 09, 2013 @12:41PM
(#5849510)
Why not just run a recursive grep? That would save having to invoke grep on every single file found.
findit() {
grep -iHR $1 .
}
Alternately, you could use the '+' variant of -exec in order to batch files together to be processed together.
Re:ffind: a sane replacement for command line file search
by msluyter on Sunday June 09, 2013 @12:50PM
(#5849539)
Cool, I wasn't aware of a -R flag in grep for some reason. I need to go back and re-read the man pages...
Re:ffind: a sane replacement for command line file search
by cwp on Sunday June 09, 2013 @12:19PM
(#5849420)
Right. There's no need to write a whole new tool just to simplify invocation for common cases. For a guy who uses the command line "a LOT" he's not making good use of his shell.