LABELGREP(1) 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)

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

November 1, 2019 OpenBSD 6.6