DB_GLOB(nged)

Globs cmd_string against the MGED database resulting in an expanded command string.

πŸ“… published 7.44.0, from nixpkgs unstable

πŸ’… 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