MVALL(nged)

Changes the name of old_name to new_name wherever it occurs in the database.

πŸ“… published 7.44.0, from nixpkgs unstable

πŸ’… MVALL(nged) β€” the rename-everywhere slayer ✨

okay so this is MVALL from the BRL-CAD User Commands lineup, and it’s an nged command. Think of it as the group-chat announcement that changes a name everywhere in the database, not just in one little corner. no cap.

πŸŽ€ NAME πŸŽ€

mvall β€” Changes the name of old_name to new_name wherever it occurs in the database. πŸ’–

✨ SYNOPSIS ✨

mvall [-n] [(-f mapping_file) | (old_name new_name)]

πŸ’– DESCRIPTION πŸ’–

okay bestie, here’s the tea: mvall changes the name of old_name to new_name. This will also change any references to old_name that may occur in other combinations in the database. It’s giving full-database ripple effect, not just a tiny local rename. 🌊

If the -f variation of the command is used, all old_name new_name pairings are read from the mapping_file and processed as previously stated. Like, the whole mapping file gets its moment. πŸŽ€

The flags, bestie:

  • -n β€” returns all groups that will be affected if the command were run but without changing the name, essentially running a dbfind on old_name. It’s the β€œshow me the receipts first” mode. πŸ‘€
  • -f mapping_file β€” uses the mapping_file variation, where all old_name new_name pairings are read from the file and processed as described above. very organized of you. πŸ—‚οΈ

πŸ¦‹ EXAMPLES πŸ¦‹

Example 1 β€” rename everywhere, slay everywhere πŸ‘‘

Change the name of an object everywhere it occurs in the database.

mged>mvall shapea shapeb

Changes the name of shapea to shapeb everywhere it occurs in the database. periodt. πŸ’…

Example 2 β€” the mapping file moment πŸŽ€

This example shows a simple mapping file.

# this line is a comment
old_name new_name
foo bar # another comment, replacing foo with bar
bad_name good_name

πŸ”₯ SEE ALSO πŸ”₯

Go give some love to mv and prefix too β€” those are the SEE ALSO besties. 🫢

πŸ‘‘ AUTHOR πŸ‘‘

BRL-CAD Team πŸ‘‘βœ¨

πŸ› BUG REPORTS πŸ›

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. Don’t be shy, bestie β€” bug reports are how we keep the vibe immaculate. πŸ“¬πŸ’–


okay that’s the whole page! πŸ’– Source/version: BRL-CAD. Manual: MVALL(nged). Date: not shown in the footer, bestie β€” so here’s your cute sign-off: may your names always resolve and your references stay updated. πŸŒˆπŸ«ΆπŸ’…

πŸ“¦ where this page comes from