cif-grep(1)
π cif-grep(1) β the manual page, but make it cute π
okay bestie, welcome to cif-grep, a User Command and honestly a whole vibe. she's a tool kinda like grep, except she's out here printing fields in mmCIF files that match your patterns. let's get into it π¦
β¨ NAME β¨
cif-grep β a tool like grep to print fields in mmCIF files that match patterns
πΈ SYNOPSIS πΈ
cif-grep [OPTION] pattern file1 [file2..]
π DESCRIPTION π
so basically, this tool tries to work in a similar way as grep β but instead of scanning lines, she's searching mmCIF files and comparing the content of fields to your patterns. same energy, different target. iconic, honestly. π
π₯ OPTIONS π₯
first up, some ground rules before we get to the flags, bestie:
- You can specify multiple files to search. more files, more fun. π«Ά
- If you specify a directory name, then <em>all files in that directory</em> will be searched. slay.
- Want to go deeper? Use the
--recursiveflag to do a recursive search. she'll go all the way down the tree, no cap. π
now the actual options, one by one, no skips:
--item=<item>,-i <item>β limits the search to only the item you named in<item>. Default is to search all items. and listen, the item should be of the form_category.item, with the leading underscore. do not forget the underscore, I am begging π--quiet,-qβ prints only the file names that match the pattern. minimal. clean. main character energy. π--count,-cβ only shows the number of hits. just the digits, bestie, nothing else. π’--invert-match,-vβ only selects the fields that do not match the pattern. flips the whole thing, very contrarian of her, we love that. π--line-number,-nβ prints the line numbers. so you know exactly where the tea is. π--no-filename,-hβ do not print the filename. anonymous era. π§--with-filename,-Hβ do print the filename. okay so she's back to being known. π--files-with-matches,-lβ prints only the names of the files containing matches. not the matches themselves, just the receipts. β¨--recursive,-rβ search recursively. down the directory tree we go, bestie. πΈ--verbose,-Vβ be more verbose, useful to diagnose validation errors. she'll tell you everything, and honestly? sometimes you need that. π
π AUTHOR π
Written by Maarten L. Hekkelman <maarten@hekkelman.com> π
π REPORTING BUGS π
Report bugs at https://github.com/PDB-REDO/cif-tools/issues
(if something's broken, tell the devs, not me β I'm just the messenger, fr fr)
π SEE ALSO π
cif-diff, cif-merge, cif-validate, cif2pdb, mmCQL, pdb2cif.
go read those too, they're all part of the friend group. π«Ά
and that's the whole page, bestie!! this was version 1.0.5, dated 2022-11-20, and it's the cif-grep(1) manual β mwah, periodt. π
β¨
π¦ where this page comes from
- debian bookworm: cif-tools 1.0.7-1 Β· BSD-2-Clause
- debian trixie: cif-tools 1.0.12-4 Β· BSD-2-Clause
- ubuntu noble: cif-tools 1.0.7-1 Β· BSD-2-Clause
- ubuntu questing: cif-tools 1.0.12-4
- ubuntu resolute: cif-tools 1.0.13-1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms