Hacker News new | ask | show | jobs
by wongarsu 7 days ago
I frequently have cases where `ls **/*.png` fails because the argument list is too long. Just happened yesterday with an rm I wanted to run.

Find works, but the syntax is arcane. Not bad, but unlike any other common cli tool, which makes it more difficult to remember if you haven't needed it in a while

3 comments

> Find works, but the syntax is arcane.

fd is a lifesaver: https://github.com/sharkdp/fd

I agree and I usually ended-up combining find reliability with other commands to obtain what I needed without big issues or too much looping syntax effort.

Regarding remembering the find syntax I think its being arcane is what it made for me more easy to remember :) I now have a unique brain area dedicated to remember only that.

Newer finds have a -delete option. Dunno if that's standard or some GNU addition, but it's there.