this post was submitted on 29 Nov 2026
805 points (98.7% liked)

Programmer Humor

34366 readers
540 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] panda_abyss@lemmy.ca 7 points 2 days ago (3 children)

Is there a more modern version of sed that ignores based on gitignore?

[–] lindgrenj6@lemmy.sdf.org 5 points 2 days ago

git grep -l usually does the trick for me, combined with xargs like the other poster.

[–] jxk@sh.itjust.works 10 points 2 days ago

find ... | grep -F -x -v -f .gitignore | xargs ...

(with some minor adjustments needed due to glob patterns in .gitignore)