SVK::Lo...r::Grep(3)
π SVK::Lo...r::Grep(3) π
okay bestie, welcome to the manpage for SVK::Log::Filter::Grep β she's part of the User Contributed Perl Documentation collection, and she is literally just here to search your log messages for a pattern. lowkey iconic behavior. π
β¨ SYNOPSIS β¨
SVK::Log::Filter::Grep - search log messages for a given pattern
that's the whole vibe, no cap. π¦
πΈ DESCRIPTION πΈ
so here's the tea, bestie: the Grep filter needs one single Perl pattern (a regular expression, iykyk) as its argument. that's it. that's her whole thing. π
then she takes that pattern and applies it to the svn:log property of every revision she receives. and then:
- if the pattern matches β the revision gets to keep flowing on down the pipeline, slay β¨
- if the pattern doesn't match β the pipeline immediately skips to the next revision. not me being brutally efficient π
okay now the important part, don't skip this: the pattern is applied with the /i modifier, which means case insensitivity. so if you want case-sensitivity, or any other little tweak to how your pattern behaves, you must use the (?imsx-imsx) extended pattern. (go run perldoc perlre for the full lore, fr fr.)
for example, if you wanna search for log messages that match exactly the characters "foo", you might do:
svk log --filter "grep (?-i)foo"
but if you wanna search for "foo" without any regard for case (she's chill like that), you might try:
svk log --filter "grep foo"
heads up about capturing parentheses: the result of any capturing parentheses inside your pattern is NOT available. like, at all. π if demand dictates, the Grep filter could be modified to stash that captured value somewhere for other filters to access β but as of right now? nope. not a thing. π
and now, the gotcha that gets everybody: if your pattern contains a pipe character ('|'), it must be escaped by putting a '\' character right before it. otherwise, the portion of the pattern after the pipe character gets interpreted as the name of a log filter. so likeβ¦ she's not being rude, she's just parsing. escape it or perish bestie π«Ά
π STASH/PROPERTY MODIFICATIONS π
good news!! Grep leaves all properties and the stash completely intact. she minds her own business. we love a filter with boundaries. π
quick reminder bestie: this page is from perl v5.42.0, dated 2025-07-25, and it lives under SVK::Lo...r::Grep(3) in the User Contributed Perl Documentation. go forth and grep, my love. mwah. πβ¨ππ¦πΈπ
π¦ where this page comes from
- fedora 43: perl-SVK 2.2.3-45.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms