GLOB(nged)

returns a list of objects specified by expression

πŸ“… published 7.44.0, from nixpkgs unstable

✨ GLOB(nged) ✨

okay so this is glob from the BRL-CAD User Commands manual, bestie β€” buckle up, it's short and it's iconic πŸ’…


🌸 NAME 🌸

glob β€” returns a list of objects specified by expression πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

glob "command_string"

πŸ’– DESCRIPTION πŸ’–

So the glob command takes a quoted MGED command string and does wildcard expansion (aka globbing, iykyk) on its arguments, matching them up against the BRL-CAD database πŸ”₯

It matches patterns using *, ?, and [ ] syntax β€” literally the classic trio, no cap.

⚠️ Heads up bestie: the first word of the string you give it (usually the command name itself) gets explicitly skipped and will not be expanded. So don't come for that first word, it's not getting the glow-up πŸ™ˆ

And what does it give you back? The expanded command string ✨

Also lowkey important: glob is an exact alias for the db_glob command. Same energy, different name 🫢


🌈 EXAMPLES 🌈

Example 1. Expand a list command with wildcards

mged> glob "l r23[0-9]"

Returns a command string where the wildcard is expanded to match database objects, such as: l r230 r231 r232.

see how the [0-9] just ate?? πŸ‘‘ periodt.


πŸ’œ AUTHOR πŸ’œ

BRL-CAD Team β€” the main characters responsible for all this 🧚


πŸ“ BUG REPORTS πŸ“

Found a bug or a problem? Don't suffer in silence β€” report it via electronic mail to devs@brlcad.org πŸ’Œ they literally want to know fr fr.


and that's the whole page bestie πŸŽ€ this was GLOB(nged) from the BRL-CAD crew, astral-projected to you with love πŸ’– go forth and expand those wildcards ✨

πŸ“¦ where this page comes from