logoalt Hacker News

wiredfoolyesterday at 4:52 PM1 replyview on HN

You might not need find due to advanced globs, but it's too easy to run into expansion limits when you match hundreds or thousands of files, so you're back to find for that.


Replies

PennRoboticstoday at 8:57 AM

Something about the find syntax never sat well with me, and I don't search often enough that I feel I need to learn it.

My "find" is almost always

    tree -if | grep "<whatever-pattern>$" | head -1
head, of course, being optional

The tradeoff is needing to learn regex, which is not any easier to learn than find arguments.