3 ms·
I must forget to give grep an filesystem path argument at least 10% of the time I invoke it. What I'm intending to do in all of those cases is recursively grep
by karatestomp 6y ago
I must forget to give grep an filesystem path argument at least 10% of the time I invoke it. What I'm intending to do in all of those cases is recursively grep in the current directory. "Warning: recursive search of stdin" might be my most-seen console error message.
- 0xADEADBEE 6y agoThis used to happen to me constantly. I fixed it accidentally in switching to Ripgrep [0] which defaults to recursively searching the current directory. Bonus: it parallelises too! Honourable mention also to FZF [1] which not only makes it trivial to locate a file in a directory tree, but has revolutionised my history use with its fuzzy matching. [0] - https://github.com/BurntSushi/ripgrep https://github.com/BurntSushi/ripgrep [1] - https://github.com/junegunn/fzf https://github.com/junegunn/fzf