Remix.run Logo
dotancohen 14 hours ago

Through I use rg to initiate searches, my muscle memory keeps using grep after pipes.

WJW 12 hours ago | parent | next [-]

Huh 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 12 hours ago | parent [-]

I 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`.

kstrauser 12 hours ago | parent | prev [-]

Heh, 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.