3 ms·
Through I use rg to initiate searches, my muscle memory keeps using grep after pipes.
by dotancohen 1y ago
Through I use rg to initiate searches, my muscle memory keeps using grep after pipes.
- kstrauser 1y agoHeh, I realized the same for myself the other day. I’ve been deliberately making myself go back and change it to rg to try to replace the muscle memory.
- WJW 1y agoHuh I hadn't even realized I did that. I think grep has the "filter in pipe" spot in my head while rg has the "search recursively in all files" spot.
- burntsushi 1y agoI did it too, even after I initially released ripgrep. At this point, I've mostly re-trained my muscle memory to use `rg` in pipelines. (Particularly because I was careful to make sure `rg` worked just like `grep` does in pipelines.) I also find that combining `-o/--only-matching` and `-r/--replace` has replaced many of my uses of `sed` and `awk`.