LABELGREP(1) FreeBSD General Commands Manual LABELGREP(1)

labelgrepprogressive label file searcher

labelgrep pattern file [file ...]

A pattern searcher for the pln(5) format. Displays the source file, label name, and highlights the contents matching a regular expression.

Lines beginning with ‘#’ are ignored.

Find all of the instances where a service is restarted

labelgrep 'rcctl|systemctl' *.pln

Show all routes that include the wordpress configuration

labelgrep 'wordpress' routes.pln

rset(1), re_format(7)

The labelgrep utility was introduced in rset 1.2

labelgrep does not attempt to validate the format of each file.

FreeBSD 15.1-STABLE August 3, 2026 LABELGREP(1)