3 ms·
find did itself such a disservice with it's syntax. find . -name 'somefile' should have been just find 'somefile' Ie, defaulting to the current dir
by nailer 3y ago
find did itself such a disservice with it's syntax.
find . -name 'somefile'
should have been just
find 'somefile'
Ie, defaulting to the current dir and default to find via name.
- krferriter 3y agoYeah I don't like using find's predicate options, I often just do find | grep somefile because I can also use all the pattern syntax I use elsewhere in grep commands.
- michaelcampbell 3y agoYou might like https://github.com/sharkdp/fd https://github.com/sharkdp/fd. I use it as it is fast, although I've used `find` for so long I have to think about the differences before I do.