PODGREP(1)
β¨ NAME β¨
okay so podgrep(1) β from the User Contributed Perl Documentation squad β is literally grep in pod sections only π
It searches each paragraph in a pod document and prints each paragraph that matches the supplied pattern. This pod may be mixed with program code, such as in a module. No cap, thatβs the whole idea π«Ά
π SYNOPSIS π
podgrep [-i] [-p] [-f] [-h] pattern [ files ... ]
π DESCRIPTION π
bestie, it goes paragraph by paragraph through a pod document and prints every paragraph that matches the pattern you gave it. The pod can be mixed with program code, like inside a module β it still does its thing β¨
Options are:
-iβ means case insensitive match π soMailandmailare not gonna trip you up.-pβ means page output through the userβs pager π The pager will be primed with an argument to search for the string. This highlights the result β iconic.-fβ means format output through thepod2textprogram π§-hβ means check for matches in pod=headand=itemheaders alone, and keep printing podagraphs until the next header is found π
πΈ EXAMPLES πΈ
$ podgrep mail `pmpath CGI`
prints out podagraphs from the CGI.pm manpage that mention mail π
$ podgrep -i destructor `sitepods`
prints out podagraphs that mention destructors in the site-installed pods π¦
$ podgrep -i 'type.?glob' `stdpods`
prints out podagraphs that mention typeglob in the standard pods β¨
$ podgrep -hpfi "lock" `faqpods`
prints out all podagraphs with "lock" in the headers case-insensitively, then formats these with pod2text, then shows them in the pager with matches high-lighted π₯
$ podgrep -fh seek `podpath perlfunc`
prints out and formats podagraphs from the standard perlfunc manpage whose headers or items contain "seek". periodt π
π₯ SEE ALSO π₯
the whole squad: faqpods(1), pfcat(1), pmpath(1), pod2text(1), podpath(1), sitepods(1), stdpods(1), and tcgrep(1) π
π NOTE π
For a pager, the author likes these environment settings (in the login startup, of course):
$ENV{PAGER} = "less";
$ENV{LESS} = "MQeicsnf";
iykyk β thatβs the pager vibe right there π«Ά
π AUTHORS and COPYRIGHTS π
- Copyright (C) 1999 Tom Christiansen.
- Copyright (C) 2006-2014, 2018 Mark Leighton Fisher.
π LICENSE π
This is free software; you can redistribute it and/or modify it under the terms of either: (a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or (b) the Perl "Artistic License". (This is the Perl 5 licensing scheme.)
Please note this is a change from the original pmtools-1.00 (still available on CPAN), as pmtools-1.00 were licensed only under the Perl "Artistic License".
kisses and good vibes from perl v5.32.1 π dated 2022-01-21 β go grep those pods, bestie π«Άβ¨
π¦ where this page comes from
- epel 9: perl-pmtools 2.2.0-14.el9 Β· GPL+ or Artistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms