logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

bregex - Bacula's 'regex' engine

Author

       This manual page was written by Bruno Friedmann <bruno@ioda-net.ch>.  This man page document is  released
       under the BSD 2-Clause license.

Kern Sibbald                                     30 October 2011                                       BREGEX(8)

Description

       This manual page documents briefly the bregex command.
       This program can be useful for testing regex expressions to be applied against a list of filenames.

Name

        bregex - Bacula's 'regex' engine

Options

       A summary of options is included below.

       -?     Show version and usage of program.

       -dnn  Set debug level to nn.

       -dt    Print timestamp in debug output

       -f<data-file>
              The data-file is a filename that contains lines of data to be matched (or not) against one or more
              patterns. When the program is run, it will prompt you for a regular expression pattern, then apply
              it  one  line  at  a  time  against  the  data in the file. Each line that matches will be printed
              preceded by its line number. You will then be prompted again for another pattern.

       -n     Print lines that do not match

       -l     Suppress lines numbers.

See Also

regex(7)

Synopsis

bregex [options] -f<data-file>

See Also