HACKER Q&A
📣 yesenadam

What command line tool do you wish existed?


Describe a command line tool you don't have but would love to have. If it already exists, replies can link to it. If it doesn't exist, maybe someone here can write it. Win/win :-)


  👤 davidatbu Accepted Answer ✓
Something to search through files, like "grep", but allowing combinational logic like "find" does. That would allow you to, for example, find files that contain "remote", and, "machine learning".

Obviously this can be done with a little Python/Bash script, but a command line utility that supports this would be nice.

I was going to write this utility myself, until the part where I had to implement the parsing of the combinational logic (since it can be arbitrarily nested/chained), and I didn't find tools in the language of my choice (Rust) back then to make that easy.

I did find a rust library to do just that yesterday[0], so I myself might get on it!

[0] https://github.com/zesterer/chumsky