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

cif-grep - A tool like grep to print fields in mmCIF files that match patterns

Author

       Written by Maarten L. Hekkelman <maarten@hekkelman.com>

Description

       This tool tries to work in a similar way as grep by searching mmCIF files comparing the content of fields
       to patterns.

Name

       cif-grep - A tool like grep to print fields in mmCIF files that match patterns

Options

       Multiple files can be specified to search. If a directory name if specified, all files in that directory
       will be searched. Use the --recursive flag to do a recursive search.

       --item=<item>, -i <item>
              Limit the search to only the item specified in <item>. Default is to search all items. Item should
              be of the form '_category.item' with the leading underscore.

       --quiet, -q
              Print only the file names that match the pattern.

       --count, -c
              Only show the number of hits.

       --invert-match, -v
              Only select the fields that do not match the pattern.

       --line-number, -n
              Print the line numbers.

       --no-filename, -h
              Do not print the filename.

       --with-filename, -H
              Do print the filename.

       --files-with-matches, -l
              Print only the names of the files containing matches.

       --recursive, -r
              Search recursively.

       --verbose,-V
              Be more verbose, useful to diagnose validation errors.

Reporting Bugs

       Report bugs at https://github.com/PDB-REDO/cif-tools/issues

See Also

cif-diff, cif-merge, cif-validate, cif2pdb, mmCQL, pdb2cif.

version 1.0.5                                      2022-11-20                                        cif-grep(1)

Synopsis

       cif-grep [OPTION] pattern file1 [file2..]

See Also