Skip to main content
20 events
when toggle format what by license comment
Dec 29, 2024 at 14:46 history edited An5Drama CC BY-SA 4.0
fix one format error.
Dec 29, 2024 at 14:25 history became hot network question
Dec 29, 2024 at 13:53 history edited An5Drama CC BY-SA 4.0
clarify about the sample demonstration.
Dec 29, 2024 at 13:18 history edited An5Drama CC BY-SA 4.0
clarify about my problem situation
Dec 29, 2024 at 13:10 comment added An5Drama @EdMorton Thanks. I added one simple sample demonstration.
Dec 29, 2024 at 13:09 history edited An5Drama CC BY-SA 4.0
add "sample input and expected output"
Dec 29, 2024 at 11:21 vote accept An5Drama
Dec 29, 2024 at 11:13 comment added An5Drama @Kusalananda Thanks. I know what I was wrong for grep now. I originally also tried to grep foo | grep --color=always -v 'foo bar' but that has no color. That is due to --color only color matched words, so not for "invert-match" words.
Dec 29, 2024 at 11:00 answer added Ed Morton timeline score: 2
Dec 29, 2024 at 10:45 comment added Ed Morton It's not clear from your question and comments what it is you're trying to do. edit your question to include concise, testable sample input and expected output that demonstrates your needs and we can copy/paste to test a potential solution with so we can best help you. Just use text like RED, GREEN, RESET in your example instead of color escape sequences for clarity and simplicity - you can change that part on your own later.
Dec 29, 2024 at 9:48 answer added meuh timeline score: 2
Dec 29, 2024 at 9:39 answer added Stéphane Chazelas timeline score: 2
Dec 29, 2024 at 9:29 comment added Kusalananda Can't you just swap the commands? grep -v 'foo bar' | grep --color=always foo
Dec 29, 2024 at 8:09 history edited An5Drama CC BY-SA 4.0
fix one typo
Dec 29, 2024 at 8:08 comment added An5Drama @meuh Sorry. I had one typo. Actually I used && which is different from the reference link. So that compound regex exp should be viewed as one whole object.
Dec 29, 2024 at 6:45 comment added meuh What do you want to highlight if the match on !/\<issue\>/ succeeds? The whole line?
Dec 29, 2024 at 6:09 history edited An5Drama CC BY-SA 4.0
add the description about why I don't use grep and remove redundant contents.
Dec 29, 2024 at 5:44 history edited An5Drama CC BY-SA 4.0
edit the title.
Dec 29, 2024 at 4:44 history edited An5Drama CC BY-SA 4.0
add one workaround not that well
Dec 29, 2024 at 4:35 history asked An5Drama CC BY-SA 4.0