Sample Header Ad - 728x90

How to delete lines with sed if they contain a phrase?

1 vote
2 answers
304 views
I tried this sed -i '/^already satisfied$/d' loggocd.txt but lines like this one Requirement already satisfied: cryptography in /home/go/.pyenv/versions/3.9.1/lib/python3.9/site-packages are not deleted. I am using git bash,but I guess that should not be a problem. Or maybe it is?
Asked by MJoao (47 rep)
Jun 6, 2025, 10:35 AM
Last activity: Jun 9, 2025, 01:51 AM