CosmicGiraffe@lemmy.worldtoLinux@lemmy.ml•How grep with -e (regex) `/log/messages` ? [ solved ]
1·
2 months agoIt’s marked solved, but since OP didn’t post the solution:
-e
uses basic regular expressions, where you need to escape the meta-characters ((|)
) with a backslash. Alternatively, use extended regex with -E
$ echo a | grep -E "(a|b)"
a
$ echo a | grep -e "\(a\|b\)"
a
$ echo a | grep -e "(a|b)"
$ echo a | grep -E "\(a\|b\)"
Blaming Spotify for this is like blaming the company that made your TV for showing you ads that are part of the broadcast. Unless Spotify makes the specific podcast you’re listening to, they’re just playing you the content someone else made, including the ads they included in that content.