DB_GLOB(nged)
Globs cmd_string against the MGED database resulting in an expanded command string.
π DB_GLOB(nged) β or like, the nged manual page you actually wanna read
okay bestie, so this is db_glob from the BRL-CAD User Commands collection, and honestly? it's a lil shortcut icon and i'm obsessed. let's get into it β¨
πΈ NAME
db_glob β globs cmd_string against the MGED database, which gives you back an expanded command string. that's it, that's the whole vibe π
π¦ SYNOPSIS
db_glob "command_string"
β¨ DESCRIPTION
so here's the tea: db_glob takes a quoted MGED command string and does wildcard expansion β a.k.a. globbing β on its arguments, checking them against the BRL-CAD database. no cap.
it matches patterns using *, ?, and [ ] syntax. that's the trio, that's the whole toolkit π
β οΈ okay this part matters: the first word of the string you hand it (usually the command name itself) is explicitly skipped and will not be expanded. so don't come for her about the first word, she's literally above that.
the command returns the expanded command string. and yes, db_glob is an exact alias for the glob command β same girl, different name tag π«Ά
π EXAMPLES
β Example 1. Expand a list command with wildcards
mged> db_glob "l r23[0-9]"
this returns a command string where the wildcard got expanded to match actual database objects, like:
l r230 r231 r232
see how she ate?? ππ₯ the [0-9] did its lil job and now you got three whole objects in the list. iconic.
π AUTHOR
BRL-CAD Team β love them, they built all this π«Ά
π BUG REPORTS
found something cursed? reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. go tell them, they wanna know fr fr π
mwah π that's the whole page β brought to you by the fine humans at BRL-CAD, and this lil manual page is literally named DB_GLOB(nged) in case you forgot on your way down here. now go glob something cute β¨π
π
π¦ where this page comes from
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms