4 ms·
I find `find` so difficult to use that I usually do `find . | grep pattern` when I need to search for a file name.
by wodenokoto 4y ago
I find `find` so difficult to use that I usually do `find . | grep pattern` when I need to search for a file name.
- xtracto 4y agoOh, I thought I was kind of dumb for doing that :) happy to see that it's normal haha. I always find myself trying to remember: is it one dash? is it "name" or "iname" or whatnot.. pipe grep is way easier.
- dankle 4y agoSame. I have an ’alias fgr=”find|grep”. Stupid but gets the job done.
- b3morales 4y agoEven better, try fzf instead: do `find . | fzf`
- g4zj 4y agoWhat do you find difficult about using `find . -regex pattern`?
- 7373737373 4y agoIt amazes me how long it took for alternatives like fd to emerge The old ones must have caused years of wasted time
- lazyweb 4y agoI just use "grep -R", sometimes with "-i" as well. Works for me 99% of the time.